diff --git a/test/ViewTest.php b/test/ViewTest.php index 3fb95520..312c25be 100644 --- a/test/ViewTest.php +++ b/test/ViewTest.php @@ -295,7 +295,7 @@ public function testCanTriggerPostRendererEvent() { $this->attachTestStrategies(); $test = (object) array('flag' => false); - $this->view->getEventManager()->attach('renderer.post', function ($e) use ($test) { + $this->view->getEventManager()->attach(ViewEvent::EVENT_RENDERER_POST, function ($e) use ($test) { $test->flag = true; }); $variables = array(