diff --git a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php index 81485713b..73f6aa593 100644 --- a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php @@ -251,7 +251,7 @@ class CacheHelperTest extends CakeTestCase { $result = $View->render('sequencial_nocache'); $this->assertNotRegExp('/cake:nocache/', $result); - $this->assertNotRegExpy('/php echo/', $result); + $this->assertNotRegExp('/php echo/', $result); $this->assertRegExp('/A\. Layout Before Content/', $result); $this->assertRegExp('/B\. In Plain Element/', $result); $this->assertRegExp('/C\. Layout After Test Element/', $result); diff --git a/lib/Cake/Test/Case/View/Helper/JsHelperTest.php b/lib/Cake/Test/Case/View/Helper/JsHelperTest.php index e1c1e5fd2..e8432c059 100644 --- a/lib/Cake/Test/Case/View/Helper/JsHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/JsHelperTest.php @@ -102,7 +102,7 @@ class JsHelperTest extends CakeTestCase { Configure::write('Asset.timestamp', false); $controller = null; - $this->View = $this->getMock('View', array('addScript'), array(&$controller)); + $this->View = $this->getMock('View', array('append'), array(&$controller)); $this->Js = new JsHelper($this->View, 'Option'); $request = new CakeRequest(null, false); $this->Js->request = $request; @@ -274,8 +274,8 @@ class JsHelperTest extends CakeTestCase { $result = $this->Js->writeBuffer(array('onDomReady' => true, 'cache' => false, 'clear' => false)); $this->View->expects($this->once()) - ->method('addScript') - ->with($this->matchesRegularExpression('/one\s\=\s1;\ntwo\s\=\s2;/')); + ->method('append') + ->with('script', $this->matchesRegularExpression('/one\s\=\s1;\ntwo\s\=\s2;/')); $result = $this->Js->writeBuffer(array('onDomReady' => false, 'inline' => false, 'cache' => false)); } @@ -288,8 +288,8 @@ class JsHelperTest extends CakeTestCase { $this->Js->set('foo', 1); $this->View->expects($this->once()) - ->method('addScript') - ->with($this->matchesRegularExpression('#