mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing issue in component test where AppController will cause failing tests due to bleed through.
This commit is contained in:
parent
a6efda66b8
commit
27ffd43214
1 changed files with 1 additions and 0 deletions
|
@ -426,6 +426,7 @@ class ComponentTest extends CakeTestCase {
|
||||||
function testTriggerCallback() {
|
function testTriggerCallback() {
|
||||||
$Controller =& new ComponentTestController();
|
$Controller =& new ComponentTestController();
|
||||||
$Controller->components = array('ComponentMock');
|
$Controller->components = array('ComponentMock');
|
||||||
|
$Controller->uses = null;
|
||||||
$Controller->constructClasses();
|
$Controller->constructClasses();
|
||||||
|
|
||||||
$Controller->ComponentMock->expectOnce('beforeRender');
|
$Controller->ComponentMock->expectOnce('beforeRender');
|
||||||
|
|
Loading…
Add table
Reference in a new issue