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

ZF-11275
Zend_Test
Autogenerated controller tests use incorrect module,controller,action values in assertions


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23943 44c647ce-9c0f-0410-b52a-842ac1e357ba

adamlundrigan 14 лет назад
Родитель
Сommit
528233c09f

+ 5 - 4
library/Zend/Tool/Project/Context/Zf/TestApplicationActionMethod.php

@@ -178,13 +178,14 @@ EOS;
             'name' => 'test' . ucfirst($actionParam) . 'Action',
             'body' => <<<EOS
 \$params = array('action' => '$actionParam', 'controller' => '$controllerParam', 'module' => '$moduleParam');
-\$url = \$this->url(\$this->urlizeOptions(\$params));
+\$urlParams = \$this->urlizeOptions(\$params);
+\$url = \$this->url(\$urlParams);
 \$this->dispatch(\$url);
 
 // assertions
-\$this->assertModule(\$params['module']);
-\$this->assertController(\$params['controller']);
-\$this->assertAction(\$params['action']);
+\$this->assertModule(\$urlParams['module']);
+\$this->assertController(\$urlParams['controller']);
+\$this->assertAction(\$urlParams['action']);
 $assert
 
 EOS