mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Renaming model_behavior test to behavior_collection test as that's the class that contains the tested methods.
This commit is contained in:
parent
73057b8853
commit
464d2217e6
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue