Skip to content
Permalink
Browse files

Adding test for attachedness of Helper helpers.

  • Loading branch information...
markstory committed Jul 3, 2010
1 parent 4672cee commit ba8058500f3e0538e7fa3ec19130d9452a97a528
Showing with 14 additions and 0 deletions.
  1. +14 −0 cake/tests/cases/libs/view/helper.test.php
@@ -806,6 +806,20 @@ function testLazyLoadingHelpers() {
App::build();
}
/**
* test that a helpers Helper is not 'attached' to the collection
*
* @return void
*/
function testThatHelperHelpersAreNotAttached() {
$Helper = new TestHelper($this->View);
$Helper->Html;
$result = $this->View->Helpers->attached();
$expected = array('Test');
$this->assertEquals($expected, $result, 'Helper helpers were attached to the collection.');
}
/**
* test that the lazy loader doesn't duplicate objects on each access.
*

0 comments on commit ba80585

Please sign in to comment.
You can’t perform that action at this time.