Laravel - HTTP Tests - Rendering Blade And Components

If necessary, you may use the blade method to evaluate and render a raw Blade string. Like the view method, the blade method returns an instance of Illuminate\Testing\TestView:

    
    $view = $this->blade(
        '',
        ['name' => 'Taylor']
    );
    
    $view->assertSee('Taylor');
	

You may use the component method to evaluate and render a Blade component. Like the view method, the component method returns an instance of Illuminate\Testing\TestView:

    
    $view = $this->component(Profile::class, ['name' => 'Taylor']);
    
    $view->assertSee('Taylor');