Skip to content
Permalink
Browse files

Fixing test that failed when no models were found in app.

  • Loading branch information...
markstory committed Jul 1, 2009
1 parent ddc341e commit 0eef6577e2b58b154f347e2d181f75e86fffefca
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/tests/cases/console/libs/tasks/test.test.php
@@ -258,6 +258,11 @@ function testRegistryClearWhenBuildingTestObjects() {
* @return void
**/
function testGetClassName() {
$objects = Configure::listObjects('model');
$skip = $this->skipIf(empty($objects), 'No models in app, this test will fail. %s');
if ($skip) {
return;
}
$this->Task->setReturnValueAt(0, 'in', 'MyCustomClass');
$result = $this->Task->getClassName('Model');
$this->assertEqual($result, 'MyCustomClass');

0 comments on commit 0eef657

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