Browse Source

Remove a default helper from View.

This goes back to the days of yore and combined with
b8320fdbb7fc83d3d9e2b72cd418cf82ae52fdae 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.
mark_story 12 years ago
parent
commit
229c824da6
2 changed files with 2 additions and 3 deletions
  1. 1 2
      lib/Cake/Test/Case/View/HelperTest.php
  2. 1 1
      lib/Cake/View/View.php

+ 1 - 2
lib/Cake/Test/Case/View/HelperTest.php

@@ -975,8 +975,7 @@ class HelperTest extends CakeTestCase {
 		$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.');
 	}
 
 /**

+ 1 - 1
lib/Cake/View/View.php

@@ -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.