Skip to content
Permalink
Browse files

Fixing test by splitting them up, testing the expected error ignored …

…the next asserts
  • Loading branch information...
Jelle Henkens authored and markstory committed Sep 8, 2011
1 parent 3cb3424 commit aa4545217e7fa008f6f7f4219097817c6a85eb56
Showing with 11 additions and 3 deletions.
  1. +11 −3 lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php
@@ -263,20 +263,28 @@ 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(
'drop' => 'onDrop',
'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',

0 comments on commit aa45452

Please sign in to comment.
You can’t perform that action at this time.