mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Removing test that is testing methods covered in ObjectCollection test case.
This commit is contained in:
parent
3022e2d785
commit
c5fa93b0fb
1 changed files with 0 additions and 28 deletions
|
@ -1035,34 +1035,6 @@ class BehaviorCollectionTest extends CakeTestCase {
|
|||
$this->assertTrue($Apple->testData('one', 'two', 'three', 'four', 'five', 'six'));
|
||||
}
|
||||
|
||||
/**
|
||||
* testBehaviorTrigger method
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function testBehaviorTrigger() {
|
||||
$Apple = new Apple();
|
||||
$Apple->Behaviors->attach('Test');
|
||||
$Apple->Behaviors->attach('Test2');
|
||||
$Apple->Behaviors->attach('Test3');
|
||||
|
||||
$Apple->beforeTestResult = array();
|
||||
$Apple->Behaviors->trigger('beforeTest', array(&$Apple));
|
||||
$expected = array('testbehavior', 'test2behavior', 'test3behavior');
|
||||
$this->assertIdentical($Apple->beforeTestResult, $expected);
|
||||
|
||||
$Apple->beforeTestResult = array();
|
||||
$Apple->Behaviors->trigger('beforeTest', array(&$Apple), array('break' => true, 'breakOn' => 'test2behavior'));
|
||||
$expected = array('testbehavior', 'test2behavior');
|
||||
$this->assertIdentical($Apple->beforeTestResult, $expected);
|
||||
|
||||
$Apple->beforeTestResult = array();
|
||||
$Apple->Behaviors->trigger('beforeTest', array($Apple), array('break' => true, 'breakOn' => array('test2behavior', 'test3behavior')));
|
||||
$expected = array('testbehavior', 'test2behavior');
|
||||
$this->assertIdentical($Apple->beforeTestResult, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* undocumented function
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue