mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove a default helper from View.
This goes back to the days of yore and combined with
b8320fdbb7
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.
This commit is contained in:
parent
5f4feb0729
commit
229c824da6
2 changed files with 2 additions and 3 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue