Browse Source

Fix tests.

ADmad 7 years ago
parent
commit
9bca9ecabe
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/TestCase/Error/DebuggerTest.php
  2. 1 1
      tests/TestCase/View/ViewTest.php

+ 1 - 1
tests/TestCase/Error/DebuggerTest.php

@@ -327,7 +327,6 @@ class DebuggerTest extends TestCase
         $result = Debugger::exportVar($View);
         $expected = <<<TEXT
 object(Cake\View\View) {
-	viewVars => []
 	Html => object(Cake\View\Helper\HtmlHelper) {}
 	Form => object(Cake\View\Helper\FormHelper) {}
 	int => (int) 2
@@ -346,6 +345,7 @@ object(Cake\View\View) {
 	[protected] layout => 'default'
 	[protected] layoutPath => null
 	[protected] autoLayout => true
+	[protected] viewVars => []
 	[protected] _ext => '.ctp'
 	[protected] subDir => ''
 	[protected] theme => null

+ 1 - 1
tests/TestCase/View/ViewTest.php

@@ -839,7 +839,7 @@ class ViewTest extends TestCase
      */
     public function testViewVars()
     {
-        $this->assertEquals(['testData' => 'Some test data', 'test2' => 'more data', 'test3' => 'even more data'], $this->View->viewVars);
+        $this->assertEquals(['testData', 'test2', 'test3'], $this->View->getVars());
     }
 
     /**