mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 08:58:25 +00:00
Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5379 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4ff21a6a08
commit
fb0a327a38
3 changed files with 11 additions and 17 deletions
|
@ -744,7 +744,7 @@ class View extends Object {
|
|||
${$camelBackedHelper}->{$subHelper} =& $loadedHelpers[$subHelper];
|
||||
}
|
||||
}
|
||||
$this->loaded[$camelBackedHelper] = (${$camelBackedHelper});
|
||||
$this->loaded[$camelBackedHelper] =& ${$camelBackedHelper};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -742,7 +742,6 @@ class FormHelperTest extends CakeTestCase {
|
|||
$this->assertEqual($result, '<input type="hidden" name="data[Contact][published]" value="0" id="theID_" /><input type="checkbox" name="data[Contact][published]" type="checkbox" id="theID" value="1" />');
|
||||
}
|
||||
|
||||
|
||||
function tearDown() {
|
||||
unset($this->Form);
|
||||
}
|
||||
|
|
|
@ -66,11 +66,6 @@ class HtmlHelperTest extends UnitTestCase {
|
|||
$this->assertPattern($expected, $result);
|
||||
}
|
||||
|
||||
function testRadio() {
|
||||
$result = $this->Html->radio('Tests/process', array('0'=> 'zero', '1'=>'one'));
|
||||
$this->assertNoPattern('/checked="checked"/', $result);
|
||||
}
|
||||
|
||||
function testStyle() {
|
||||
$result = $this->Html->style(array('display'=> 'none', 'margin'=>'10px'));
|
||||
$expected = 'style="display:none; margin:10px;"';
|
||||
|
|
Loading…
Add table
Reference in a new issue