Skip to content

Commit 02ee7a7

Browse files
committed
Merge pull request #151 from symfony-cmf/do-normal-test
the twig regression is fixed, run the standard test again. fix #141
2 parents 22e6e40 + d3027f3 commit 02ee7a7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Tests/Functional/Admin/RouteAdminTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ public function testTemplateViolation()
7979

8080
public function testCorrectTemplate()
8181
{
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'));
8583
$this->errorElement->expects($this->never())
8684
->method('with')
8785
;

Tests/Functional/Routing/DynamicRouterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public function testEnhanceTemplateByClass()
260260
}
261261
$document = new Content();
262262
$document->setId('/test/templatebyclass');
263+
$document->setTitle('the title');
263264
$this->getDm()->persist($document);
264265

265266
// put a route for this content

0 commit comments

Comments
 (0)