Open JonoB opened 11 years ago
I'll have to look into that. That said, the recommended way is to use blade templates, rather than setting $this->layout->content.
Actually, there are two pretty big benefits to using $this->layout->content
@extends
in every view Here's an old forum post for reference: http://forums.laravel.io/viewtopic.php?id=839
All of my controller methods set up the view using the following kind of syntax:
I am unit testing this with the following code:
And this fails with the following error:
If I change my controller method as follows, then the test passes correctly:
Am I missing something obvious here or is it not possible to unit test methods that generate a view with $this->layout ?