namespace Tests\\Feature;
use Tests\\TestCase; // Correct Laravel TestCase
use Livewire\\Livewire;
use Illuminate\\Foundation\\Testing\\RefreshDatabase;
class MyComponentTest extends TestCase
{
use RefreshDatabase;
/\*\* @test \*/
public function component_renders_properly()
{
Livewire::test('my-component')
-\>assertSee('Expected Text');
}
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... t-failures
Мобильная версия