Skip to content

Commit

Permalink
fix tests for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Aug 6, 2012
1 parent 973d31c commit fcb32e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/EventListener/ViewResponseListenerTest.php
Expand Up @@ -148,10 +148,14 @@ public function testOnKernelViewFallsBackToFrameworkExtraBundle()
$request->attributes->set('_template', $template);

$templating = $this->getMock('\Symfony\Bundle\FrameworkBundle\Templating\EngineInterface');
$templating->expects($this->once())
$templating->expects($this->any())
->method('renderResponse')
->with($template, array())
->will($this->returnValue(new Response('output')));
$templating->expects($this->any())
->method('render')
->with($template, array())
->will($this->returnValue('output'));

$container = $this->getMockBuilder('\Symfony\Component\DependencyInjection\Container')->disableOriginalConstructor()->getMock();
$container->expects($this->once())
Expand Down

0 comments on commit fcb32e0

Please sign in to comment.