StydeNet / whetstone

Tool to unit test your Blade views and components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Tool to unit test your Blade views and components

License:MIT License


Languages

Language:PHP 99.5%Language:Blade 0.5%