|
|
@@ -885,7 +885,6 @@ class Zend_Controller_Action_Helper_ViewRendererTest extends PHPUnit_Framework_T
|
|
|
$this->helper->setActionController($controller);
|
|
|
$scriptName = $this->helper->getViewScript();
|
|
|
$this->assertEquals('foo/my-bar.phtml', $scriptName);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -909,6 +908,20 @@ class Zend_Controller_Action_Helper_ViewRendererTest extends PHPUnit_Framework_T
|
|
|
{
|
|
|
return str_replace(array('/', '\\'), '/', $path);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-10725
|
|
|
+ */
|
|
|
+ public function testActionsWithLeadingCapitalLettersShouldNotInvokeTruncatedViewScripts()
|
|
|
+ {
|
|
|
+ $this->request->setModuleName('default')
|
|
|
+ ->setControllerName('Controller')
|
|
|
+ ->setActionName('Action');
|
|
|
+ $controller = new Bar_IndexController($this->request, $this->response, array());
|
|
|
+ $this->helper->setActionController($controller);
|
|
|
+ $scriptName = $this->helper->getViewScript();
|
|
|
+ $this->assertEquals('controller/action.phtml', $scriptName);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// Call Zend_Controller_Action_Helper_ViewRendererTest::main() if this source file is executed directly.
|