diff --git a/cake/tests/cases/libs/all_model.test.php b/cake/tests/cases/libs/all_model.test.php index 43ef7964b..fb99184c0 100644 --- a/cake/tests/cases/libs/all_model.test.php +++ b/cake/tests/cases/libs/all_model.test.php @@ -36,7 +36,7 @@ class AllModelTest extends PHPUnit_Framework_TestSuite { public static function suite() { $suite = new PHPUnit_Framework_TestSuite('All Model related class tests'); - $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_behavior.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'behavior_collection.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_read.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_write.test.php'); $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_validation.test.php'); diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index 729320151..927b22fe0 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -714,6 +714,9 @@ class AppImportTest extends CakeTestCase { * @return void */ function testMultipleLoading() { + if (class_exists('I18n', false) || class_exists('CakeSocket', false)) { + $this->markTestSkipped('Cannot test loading of classes that exist.'); + } $toLoad = array('I18n', 'CakeSocket'); $classes = array_flip(get_declared_classes()); diff --git a/cake/tests/cases/libs/model/model_integration.test.php b/cake/tests/cases/libs/model/model_integration.test.php index 63370a696..fb87a32d1 100644 --- a/cake/tests/cases/libs/model/model_integration.test.php +++ b/cake/tests/cases/libs/model/model_integration.test.php @@ -249,15 +249,11 @@ class ModelIntegrationTest extends BaseModelTest { function testCrossDatabaseJoins() { $config = new DATABASE_CONFIG(); - $skip = $this->skipIf( - !isset($config->test) || !isset($config->test2), - '%s Primary and secondary test databases not configured, skipping cross-database ' - .'join tests.' - .' To run these tests, you must define $test and $test2 in your database configuration.' - ); - + $skip = (!isset($config->test) || !isset($config->test2)); if ($skip) { - return; + $this->markTestSkipped('Primary and secondary test databases not configured, skipping cross-database + join tests. To run theses tests defined $test and $test2 in your database configuration.' + ); } $this->loadFixtures('Article', 'Tag', 'ArticlesTag', 'User', 'Comment');