2
0
Просмотр исходного кода

removed testInitContextThrowsExceptionIfControllerContextsIsInvalid unit test

Adar Porat 12 лет назад
Родитель
Сommit
f634057c79
1 измененных файлов с 0 добавлено и 14 удалено
  1. 0 14
      tests/Zend/Controller/Action/Helper/ContextSwitchTest.php

+ 0 - 14
tests/Zend/Controller/Action/Helper/ContextSwitchTest.php

@@ -478,20 +478,6 @@ class Zend_Controller_Action_Helper_ContextSwitchTest extends PHPUnit_Framework_
         $this->checkNothingIsDone();
     }
 
-    public function testInitContextThrowsExceptionIfControllerContextsIsInvalid()
-    {
-        $this->controller->contexts = 'foo';
-        $this->request->setParam('format', 'xml')
-                      ->setActionName('foo');
-        try {
-            $this->helper->initContext();
-            $this->fail('Invalid contexts array should cause failure');
-        } catch (Zend_Controller_Exception $e) {
-            $this->assertContains('Invalid', $e->getMessage());
-        }
-        $this->checkNothingIsDone();
-    }
-
     public function testInitContextDoesNothingIfActionHasNoContexts()
     {
         $this->request->setParam('format', 'xml')