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
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