Extbase:
authorJochen Rau <j.rau@web.de>
Mon, 11 May 2009 06:36:28 +0000 (06:36 +0000)
committerJochen Rau <j.rau@web.de>
Mon, 11 May 2009 06:36:28 +0000 (06:36 +0000)
* Fixed typo in ActionController (Bug #3253)
* Adjusted the unit tests to cover that issue

typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php
typo3/sysext/extbase/Tests/MVC/Controller/ActionController_testcase.php

index 5271376..f9b33b7 100644 (file)
@@ -60,7 +60,7 @@ class Tx_Extbase_MVC_Controller_ActionController extends Tx_Extbase_MVC_Controll
         * @var string
         */
        // SK: Decision: Do we support "format"?
-       protected $viewObjectNamePattern = 'Tx_@exension_View_@controller_@action';
+       protected $viewObjectNamePattern = 'Tx_@extension_View_@controller_@action';
 
        /**
         * Name of the action method
index 2f091d4..25d1c39 100644 (file)
@@ -188,7 +188,8 @@ class Tx_Extbase_MVC_Controller_ActionController_testcase extends Tx_Extbase_Bas
        
                $mockController = $this->getMock($this->buildAccessibleProxy('Tx_Extbase_MVC_Controller_ActionController'), array('dummy'), array(), '', FALSE);
                $mockController->_set('request', $mockRequest);
-               $mockController->_set('viewObjectNamePattern', 'Tx_@extension_View_@controller_@action');
+               // The viewObjectNamePattern of the Action should also be tested (#3253)
+               // $mockController->_set('viewObjectNamePattern', 'Tx_@extension_View_@controller_@action');
        
                eval('class Tx_MyExtension_View_MyController_MyAction {}');