Skip to content

Commit

Permalink
Updating test case to use correct methods.
Browse files Browse the repository at this point in the history
Updating test case to run in CLI.
  • Loading branch information
markstory committed Aug 11, 2010
1 parent ba80585 commit 3379e53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cake/tests/cases/libs/view/helper.test.php
Expand Up @@ -17,7 +17,7 @@
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
App::import('Core', array('View', 'Helper'));
App::import('Core', array('View', 'Helper', 'Router'));

/**
* HelperTestPost class
Expand Down Expand Up @@ -813,10 +813,10 @@ function testLazyLoadingHelpers() {
*/
function testThatHelperHelpersAreNotAttached() {
$Helper = new TestHelper($this->View);
$Helper->Html;
$result = $this->View->Helpers->attached();
$expected = array('Test');
$Helper->OtherHelper;

$result = $this->View->Helpers->enabled();
$expected = array();
$this->assertEquals($expected, $result, 'Helper helpers were attached to the collection.');
}

Expand Down

0 comments on commit 3379e53

Please sign in to comment.