diff --git a/Cake/Test/TestCase/TestSuite/TestCaseTest.php b/Cake/Test/TestCase/TestSuite/TestCaseTest.php index e411c100a0a..641e076b9a8 100644 --- a/Cake/Test/TestCase/TestSuite/TestCaseTest.php +++ b/Cake/Test/TestCase/TestSuite/TestCaseTest.php @@ -412,14 +412,4 @@ public function testGetMockForModelModel() { $this->assertFalse($Mock->save(array())); } -/** - * testGetMockForModelDoesNotExist - * - * @expectedException Cake\Error\MissingModelException - * @expectedExceptionMessage Model IDoNotExist could not be found - * @return void - */ - public function testGetMockForModelDoesNotExist() { - $this->getMockForModel('IDoNotExist'); - } } diff --git a/Cake/TestSuite/TestCase.php b/Cake/TestSuite/TestCase.php index 3b5becca382..d92ffb746d9 100644 --- a/Cake/TestSuite/TestCase.php +++ b/Cake/TestSuite/TestCase.php @@ -689,6 +689,7 @@ protected function skipUnless($condition, $message = '') { * @param mixed $methods * @param array $config * @throws Cake\Error\MissingModelException + * @todo Rewrite so it gets a model for a Table object * @return Model */ public function getMockForModel($model, $methods = array(), $config = array()) {