mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Helper test case is passing again.
This commit is contained in:
parent
087ccabffe
commit
ab815a53ba
2 changed files with 3 additions and 2 deletions
|
@ -149,6 +149,7 @@ class Helper extends Object {
|
|||
* @param array $settings Configuration settings for the helper.
|
||||
*/
|
||||
public function __construct(View $View, $settings = array()) {
|
||||
$this->View = $View;
|
||||
// Nothing to see here.
|
||||
}
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ class HelperTest extends CakeTestCase {
|
|||
Router::reload();
|
||||
$null = null;
|
||||
$this->View = new View($null);
|
||||
$this->Helper = new Helper();
|
||||
$this->Helper = new Helper($this->View);
|
||||
ClassRegistry::addObject('HelperTestPost', new HelperTestPost());
|
||||
ClassRegistry::addObject('HelperTestComment', new HelperTestComment());
|
||||
ClassRegistry::addObject('HelperTestTag', new HelperTestTag());
|
||||
|
@ -771,7 +771,7 @@ class HelperTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testParseAttributeCompact() {
|
||||
$helper =& new TestHelper();
|
||||
$helper =& new TestHelper($this->View);
|
||||
$compact = array('compact', 'checked', 'declare', 'readonly', 'disabled',
|
||||
'selected', 'defer', 'ismap', 'nohref', 'noshade', 'nowrap', 'multiple', 'noresize');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue