File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,7 @@ public function testTemplateViolation()
79
79
80
80
public function testCorrectTemplate ()
81
81
{
82
- // the template 'TwigBundle::layout.html.twig' is not found in the test setup...
83
- $ mockTemplate = $ this ->getMockBuilder ('Twig_Template ' )->disableOriginalConstructor ()->getMockForAbstractClass ();
84
- $ route = new Route ('/ ' , array ('_template ' => $ mockTemplate ));
82
+ $ route = new Route ('/ ' , array ('_template ' => 'TwigBundle::layout.html.twig ' ));
85
83
$ this ->errorElement ->expects ($ this ->never ())
86
84
->method ('with ' )
87
85
;
Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ public function testEnhanceTemplateByClass()
260
260
}
261
261
$ document = new Content ();
262
262
$ document ->setId ('/test/templatebyclass ' );
263
+ $ document ->setTitle ('the title ' );
263
264
$ this ->getDm ()->persist ($ document );
264
265
265
266
// put a route for this content
You can’t perform that action at this time.
0 commit comments