mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added ClassRegistry::flush() to testAction(). Repairs issue with view vars not being unique between testAction() calls in the same test case. Closes #5273
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7470 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fb5a0a6f12
commit
a53a08574d
1 changed files with 1 additions and 0 deletions
|
@ -316,6 +316,7 @@ class CakeTestCase extends UnitTestCase {
|
|||
if (isset($this->_actionFixtures)) {
|
||||
unset($this->_actionFixtures);
|
||||
}
|
||||
ClassRegistry::flush();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue