Skip to content

Commit

Permalink
Merge pull request #2 from Xety/fix-testcases
Browse files Browse the repository at this point in the history
Fixed testcases
  • Loading branch information
Xety committed Mar 17, 2015
2 parents 09e4608 + 230edc0 commit 7eee47d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/TestCase/Auth/CookieAuthenticateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function setUp() {
Security::salt('Xety-Cake3CookieAuth_Xety-Cake3CookieAuth');
$this->registry = new ComponentRegistry(new Controller($this->request, $this->response));
$this->registry->load('Cookie');
$this->registry->load('Session');
$this->registry->load('Auth');
$this->auth = new CookieAuthenticate($this->registry);

Expand Down Expand Up @@ -118,7 +117,7 @@ public function testAuthenticateNoCookieComponent() {
$this->_registry->load('Cookie');
$this->_auth = new CookieAuthenticate($this->_registry);

$this->assertTrue($this->_registry->loaded('Cookie'));
$this->assertTrue($this->_registry->has('Cookie'));

$this->_registry->unload('Cookie');

Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
require_once 'vendor/autoload.php';

// Path constants to a few helpful things.
define('DS', DIRECTORY_SEPARATOR);
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
define('ROOT', dirname(__DIR__) . DS);
define('CAKE_CORE_INCLUDE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
define('CORE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp' . DS);
Expand Down

0 comments on commit 7eee47d

Please # to comment.