From 608e5ee04b3956a898139518ef35b5c6f4581ef8 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 9 Sep 2011 21:43:57 -0400 Subject: [PATCH] Refactoring test. Removing expectError() replacing it with PHPUnit annotation. --- lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php b/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php index cb89a56700f..bf4307b0943 100644 --- a/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php @@ -267,10 +267,10 @@ public function testDrag() { /** * test drop() method with the required drag option missing * + * @expectedException PHPUnit_Framework_Error_Warning * @return void */ public function testDropWithMissingOption() { - $this->expectError(); $this->Moo->get('#drop-me'); $this->Moo->drop(array( 'drop' => 'onDrop',