소스 검색

[TESTS] Fixed testShouldAllowProgrammaticDijitCreationAsRemoter to look in onLoad actions

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18610 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 년 전
부모
커밋
ec550db77f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/Zend/Dojo/View/Helper/FilteringSelectTest.php

+ 2 - 2
tests/Zend/Dojo/View/Helper/FilteringSelectTest.php

@@ -166,9 +166,9 @@ class Zend_Dojo_View_Helper_FilteringSelectTest extends PHPUnit_Framework_TestCa
         $this->assertNotNull($this->view->dojo()->getDijit('elementId'));
 
         $found = false;
-        $scripts = $this->view->dojo()->getJavascript();
+        $scripts = $this->view->dojo()->getOnLoadActions();
         foreach ($scripts as $js) {
-            if (strstr($js, 'var stateStore;')) {
+            if (strstr($js, 'var stateStore')) {
                 $found = true;
                 break;
             }