Skip to content
This repository
Browse code

Refactoring test.

Removing expectError() replacing it with PHPUnit annotation.
  • Loading branch information...
commit 608e5ee04b3956a898139518ef35b5c6f4581ef8 1 parent aa45452
Mark Story authored September 09, 2011
2  lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php
@@ -267,10 +267,10 @@ public function testDrag() {
267 267
 /**
268 268
  * test drop() method with the required drag option missing
269 269
  *
  270
+ * @expectedException PHPUnit_Framework_Error_Warning
270 271
  * @return void
271 272
  */
272 273
 	public function testDropWithMissingOption() {
273  
-		$this->expectError();
274 274
 		$this->Moo->get('#drop-me');
275 275
 		$this->Moo->drop(array(
276 276
 			'drop' => 'onDrop',

0 notes on commit 608e5ee

Please sign in to comment.
Something went wrong with that request. Please try again.