Skip to content
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...
markstory committed Sep 2, 2013
1 parent 5f4feb0 commit 229c824da66a33dda7fe4aa3e8fe6e08e92a2c0d
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() {
$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.');
@@ -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.
You can’t perform that action at this time.