appstract / laravel-blade-directives

A collection of nice Laravel Blade directives
MIT License
858 stars 75 forks source link

Add tests #35

Closed stephanecoinon closed 6 years ago

stephanecoinon commented 6 years ago

Added tests for all the directives.

The assertBladeRenders() assertion tests the rendered HTML (not just the compiled PHP) so it keeps the tests short and clean. This also allows the tests not to depend on the directives implementation.

The tests include a partial Laravel app to test @routeis and @routeisnot.

Please let me know what you think, I'm happy to make changes

ovanschie commented 6 years ago

Thanks for your contribution! This looks very promising, will go through it tonight :)