Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 641 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 641 Bytes

Styde/Whetstone

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>
    ');