luilliarcec / whetstone
Tool to unit test your Blade views and components
1.0.0
2022-06-21 08:33 UTC
Requires
- php: ^8.0
- gajus/dindent: ^2.0
- illuminate/view: ^9.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
README
Tool to unit test your Blade views and components.
Whetstone extends the Blade testing methods provided by Laravel out of the box, so you can test the full rendering of Blade views and components.
Installation:
composer require styde/whetstone
Usage:
$this->template('<x-nav-link :url="$url">Enlighten</x-nav-link>') ->withData([ 'url' => 'https://github.com/Stydenet/enlighten', ]) ->assertSee('Enlighten') ->assertRender(' <a href="https://github.com/Stydenet/enlighten">Enlighten</a> ');