From aa4545217e7fa008f6f7f4219097817c6a85eb56 Mon Sep 17 00:00:00 2001 From: Jelle Henkens Date: Fri, 9 Sep 2011 00:58:59 +0100 Subject: [PATCH] Fixing test by splitting them up, testing the expected error ignored the next asserts --- .../Case/View/Helper/MootoolsEngineHelperTest.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php b/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php index 5cc26dba4cb..cb89a56700f 100644 --- a/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php @@ -263,12 +263,13 @@ public function testDrag() { $expected = '$("drag-me").makeDraggable({onComplete:onStop, onDrag:onDrag, onStart:onStart, snap:[10,10]});'; $this->assertEqual($expected, $result); } + /** - * test drop() method + * test drop() method with the required drag option missing * * @return void */ - public function testDrop() { + public function testDropWithMissingOption() { $this->expectError(); $this->Moo->get('#drop-me'); $this->Moo->drop(array( @@ -276,7 +277,14 @@ public function testDrop() { 'leave' => 'onLeave', 'hover' => 'onHover', )); - + } +/** + * test drop() method + * + * @return void + */ + public function testDrop() { + $this->Moo->get('#drop-me'); $result = $this->Moo->drop(array( 'drop' => 'onDrop', 'leave' => 'onLeave',