mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removed leading underscores from ReflectionProperty variables in test case
This commit is contained in:
parent
f0036b3ebc
commit
8645e05ab1
1 changed files with 6 additions and 6 deletions
|
@ -62,9 +62,9 @@ class CakeFixtureManagerTest extends CakeTestCase {
|
|||
$fixtureManager = $this->fixtureManager;
|
||||
$fixtureManagerReflection = new ReflectionClass($fixtureManager);
|
||||
|
||||
$_loadedProperty = $fixtureManagerReflection->getProperty('_loaded');
|
||||
$_loadedProperty->setAccessible(true);
|
||||
$_loadedProperty->setValue($fixtureManager, array('core.uuid' => $MockFixture));
|
||||
$loadedProperty = $fixtureManagerReflection->getProperty('_loaded');
|
||||
$loadedProperty->setAccessible(true);
|
||||
$loadedProperty->setValue($fixtureManager, array('core.uuid' => $MockFixture));
|
||||
|
||||
$TestCase = $this->getMock('CakeTestCase');
|
||||
$TestCase->fixtures = array('core.uuid');
|
||||
|
@ -89,9 +89,9 @@ class CakeFixtureManagerTest extends CakeTestCase {
|
|||
$fixtureManager = $this->fixtureManager;
|
||||
$fixtureManagerReflection = new ReflectionClass($fixtureManager);
|
||||
|
||||
$_fixtureMapProperty = $fixtureManagerReflection->getProperty('_fixtureMap');
|
||||
$_fixtureMapProperty->setAccessible(true);
|
||||
$_fixtureMapProperty->setValue($fixtureManager, array('UuidFixture' => $MockFixture));
|
||||
$fixtureMapProperty = $fixtureManagerReflection->getProperty('_fixtureMap');
|
||||
$fixtureMapProperty->setAccessible(true);
|
||||
$fixtureMapProperty->setValue($fixtureManager, array('UuidFixture' => $MockFixture));
|
||||
|
||||
$dboMethods = array_diff(get_class_methods('DboSource'), array('enabled'));
|
||||
$dboMethods[] = 'connect';
|
||||
|
|
Loading…
Add table
Reference in a new issue