diff options
Diffstat (limited to 'site/app/tests/controllers/users_controller.test.php')
-rw-r--r-- | site/app/tests/controllers/users_controller.test.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/site/app/tests/controllers/users_controller.test.php b/site/app/tests/controllers/users_controller.test.php index a28daf5..c81ebb6 100644 --- a/site/app/tests/controllers/users_controller.test.php +++ b/site/app/tests/controllers/users_controller.test.php @@ -73,7 +73,13 @@ class UsersTest extends UnitTestCase { $this->controller = $this->helper->getController('Users', $this); $this->helper->mockComponents($this->controller, $this); $this->controller->User->cacheQueries = false; // important! Otherwise cake doesn't realize when we changed the user data. - $this->controller->User->caching = false; // improtant! Otherwise memcache will break stuff. + $this->controller->User->caching = false; // important! Otherwise memcache will break stuff. + + // Prevent exceptions in other parts of the world. + $this->controller->Amo->setReturnValue('getApplicationVersions', + array(1 => array(1.5, 2.0, 3.0), + 18 => array(1.5, 2.0, 3.0))); + $this->controller->params['url'] = array(); } /** |