Removing some no longer required method calls.

This commit is contained in:
mark_story 2011-02-19 11:30:09 -05:00
parent c15d0132f3
commit 1ee6c1ee45

View file

@ -1228,13 +1228,9 @@ class CakeRequestTestCase extends CakeTestCase {
), ),
) )
); );
$backup = $this->__backupEnvironment();
foreach ($environments as $name => $env) { foreach ($environments as $name => $env) {
foreach ($env as $descrip => $settings) { foreach ($env as $descrip => $settings) {
if ($settings['reload']) {
$this->__reloadEnvironment();
}
$this->__loadEnvironment($settings); $this->__loadEnvironment($settings);
$request = new CakeRequest(); $request = new CakeRequest();
@ -1255,7 +1251,6 @@ class CakeRequestTestCase extends CakeTestCase {
} }
} }
} }
$this->__loadEnvironment(array_merge(array('reload' => true), $backup));
} }
/** /**