Refactoring test.

Removing expectError() replacing it with PHPUnit annotation.
This commit is contained in:
mark_story 2011-09-09 21:43:57 -04:00
parent aa4545217e
commit 608e5ee04b

View file

@ -267,10 +267,10 @@ class MooEngineHelperTest extends CakeTestCase {
/**
* 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',