Renaming model_behavior test to behavior_collection test as that's the class that contains the tested methods.

This commit is contained in:
Mark Story 2010-09-06 13:51:42 -04:00
parent 73057b8853
commit 464d2217e6
3 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ class BehaviorCollection extends ObjectCollection {
if (!empty($behaviors)) {
foreach (Set::normalize($behaviors) as $behavior => $config) {
$this->attach($behavior, $config);
$this->load($behavior, $config);
}
}
}

View file

@ -36,7 +36,7 @@ class AllBehaviorsTest extends PHPUnit_Framework_TestSuite {
$suite = new PHPUnit_Framework_TestSuite('Model Behavior and all behaviors');
$path = CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'behaviors' . DS;
$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($path . 'acl.test.php');
// $suite->addTestFile($path . 'containable.test.php');

View file

@ -411,12 +411,12 @@ class Test7Behavior extends ModelBehavior{
}
/**
* BehaviorTest class
* BehaviorCollection class
*
* @package cake
* @subpackage cake.tests.cases.libs.model
*/
class BehaviorTest extends CakeTestCase {
class BehaviorCollectionTest extends CakeTestCase {
/**
* fixtures property