Skip to content

Commit

Permalink
Removed leading underscores from ReflectionProperty variables in test…
Browse files Browse the repository at this point in the history
… case
  • Loading branch information
young-steveo committed Dec 7, 2013
1 parent f0036b3 commit 8645e05
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Cake/Test/Case/TestSuite/Fixture/CakeFixtureManagerTest.php
Expand Up @@ -62,9 +62,9 @@ public function testLoadTruncatesTable() {
$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');
Expand All @@ -89,9 +89,9 @@ public function testLoadSingleTruncatesTable() {
$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';
Expand Down

0 comments on commit 8645e05

Please sign in to comment.