Permalink
Browse files

Remove a default helper from View.

This goes back to the days of yore and combined with
b8320fd it causes issues. The specific
issue at hand was testing a helper that uses other aliased helpers
(HtmlHelper specifically). The core helper would always be loaded
instead of the aliased one.
  • Loading branch information...
1 parent 5f4feb0 commit 229c824da66a33dda7fe4aa3e8fe6e08e92a2c0d @markstory markstory committed Sep 2, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/Cake/Test/Case/View/HelperTest.php
  2. +1 −1 lib/Cake/View/View.php
@@ -975,8 +975,7 @@ public function testThatHelperHelpersAreNotAttached() {
$Helper->OtherHelper;
$result = $this->View->Helpers->enabled();
- $expected = array('Html');
- $this->assertEquals($expected, $result, 'Helper helpers were attached to the collection.');
+ $this->assertEquals(array(), $result, 'Helper helpers were attached to the collection.');
}
/**
View
@@ -98,7 +98,7 @@ class View extends Object {
*
* @var mixed A single name as a string or a list of names as an array.
*/
- public $helpers = array('Html');
+ public $helpers = array();
/**
* Path to View.

0 comments on commit 229c824

Please sign in to comment.