Example #1
0
 public function testGetFullActionName()
 {
     $frontName = 'testFrontName';
     $controllerName = 'testControllerName';
     $actionName = 'testActionName';
     $fullActionName = 'testfrontname_testcontrollername_testactionname';
     $this->request->expects($this->once())->method('getModuleName')->will($this->returnValue($frontName));
     $this->request->expects($this->once())->method('getControllerName')->will($this->returnValue($controllerName));
     $this->request->expects($this->once())->method('getActionName')->will($this->returnValue($actionName));
     $this->assertEquals($fullActionName, $this->context->getFullActionName());
 }