Fehlende Methoden in Laravel Livewire TestCase führen zu TestfehlernPhp

PHP-Programmierer chatten hier
Anonymous
 Fehlende Methoden in Laravel Livewire TestCase führen zu Testfehlern

Post by Anonymous »

namespace Tests\Feature;
use Tests\TestCase; // Laravel TestCase korrigieren
Livewire\Livewire verwenden;
Illuminate\Foundation\Testing\RefreshDatabase verwenden;
Klasse MyComponentTest erweitert TestCase
{

Code: Select all

use RefreshDatabase;

/\*\* @test \*/

public function component_renders_properly()

{

Livewire::test('my-component')

-\>assertSee('Expected Text');

}
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post