PHP code example of christophrumpel / missing-livewire-assertions
1. Go to this page and download the library: Download christophrumpel/missing-livewire-assertions library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
christophrumpel / missing-livewire-assertions example snippets
Livewire::test(FeedbackForm::class)
->assertPropertyWired('email');
Livewire::test(FeedbackForm::class)
->assertMethodWired('submit');
Livewire::test(FeedbackForm::class)
->assertMethodWired('$toggle(\'sortAsc\')');
Livewire::test(FeedbackForm::class)
->assertMethodWiredToAction('mouseenter', 'enter');
Livewire::test(FeedbackForm::class)
->assertMethodWiredToForm('upload');
Livewire::test(FeedbackForm::class)
->assertMethodWiredToEvent('setValue', 'change');
Livewire::test(FeedbackForm::class)
->assertMethodWiredToEventWithoutModifiers('reset', 'keyup');
Livewire::test(FeedbackForm::class)
->assertMethodWiredToEventWithoutModifiers('reset', 'keyup.escape');
Livewire::test(FeedbackForm::class)
->assertContainsLivewireComponent(CategoryList::class);
Livewire::test(FeedbackForm::class)
->assertContainsLivewireComponent('category-list');
Livewire::test(FeedbackForm::class)
->assertContainsBladeComponent(Button::class);
Livewire::test(FeedbackForm::class)
->assertContainsBladeComponent('button');
Livewire::test(FeedbackForm::class)
->assertSeeBefore('first string', 'second string');