Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Renaming model_behavior test to behavior_collection test as that's th…
…e class that contains the tested methods.
  • Loading branch information
markstory committed Sep 6, 2010
1 parent 73057b8 commit 464d221
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cake/libs/model/behavior_collection.php
Expand Up @@ -65,7 +65,7 @@ function init($modelName, $behaviors = array()) {

if (!empty($behaviors)) {
foreach (Set::normalize($behaviors) as $behavior => $config) {
$this->attach($behavior, $config);
$this->load($behavior, $config);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/all_behaviors.test.php
Expand Up @@ -36,7 +36,7 @@ public static function suite() {
$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');
Expand Down
Expand Up @@ -411,12 +411,12 @@ function setup(&$model, $config = null) {
}

/**
* BehaviorTest class
* BehaviorCollection class
*
* @package cake
* @subpackage cake.tests.cases.libs.model
*/
class BehaviorTest extends CakeTestCase {
class BehaviorCollectionTest extends CakeTestCase {

/**
* fixtures property
Expand Down

0 comments on commit 464d221

Please sign in to comment.