[+BUGFIX] Extbase (Tests): Fixed some broken testcases.
authorJochen Rau <j.rau@web.de>
Wed, 25 Nov 2009 10:33:18 +0000 (10:33 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 25 Nov 2009 10:33:18 +0000 (10:33 +0000)
typo3/sysext/extbase/Tests/MVC/Web/RequestBuilder_testcase.php
typo3/sysext/extbase/Tests/Utility/Extension_testcase.php

index 851fe51..2aeace7 100644 (file)
@@ -51,7 +51,7 @@ class Tx_Extbase_MVC_Web_RequestBuilder_testcase extends Tx_Extbase_BaseTestCase
                        'switchableControllerActions.' => array(
                                '1.' => array(
                                        'controller' => 'TheFirstController',
-                                       'actions' => ',show,index, ,new,create,delete,edit,update,setup,test'
+                                       'actions' => 'show,index, ,new,create,delete,edit,update,setup,test'
                                        ),
                                '2.' => array(
                                        'controller' => 'TheSecondController',
@@ -118,14 +118,13 @@ class Tx_Extbase_MVC_Web_RequestBuilder_testcase extends Tx_Extbase_BaseTestCase
         */
        public function buildWithMissingActionsReturnsAWebRequestObjectWithDefaultControllerSettings() {
                $configuration = $this->configuration;
-               unset($configuration['controller']);
                unset($configuration['action']);
                $this->builder->initialize($configuration);
                $request = $this->builder->build();
                $this->assertEquals('pi1', $request->getPluginName());
                $this->assertEquals('MyExtension', $request->getControllerExtensionName());
                $this->assertEquals('TheFirstController', $request->getControllerName());
-               $this->assertEquals('show', $request->getControllerActionName());
+               $this->assertEquals('index', $request->getControllerActionName());
        }
 
        /**
index 01e489f..8ae97e8 100644 (file)
@@ -86,12 +86,11 @@ class Tx_Extbase_Utility_Extension_testcase extends tx_phpunit_testcase {
                $defaultTypoScript = $TYPO3_CONF_VARS['FE']['defaultTypoScript_setup'];
                $this->assertContains('tt_content.list.20.myextension_pi1 = USER', $staticTypoScript);
                $this->assertContains('
-plugin.tx_blogexample {
+plugin.tx_myextension {
        settings {
        }
        persistence {
                storagePid =
-               enableAutomaticCacheClearing = 1
                classes {
                }
        }