Helper test case is passing again.

This commit is contained in:
mark_story 2010-07-03 01:10:36 -04:00
parent 087ccabffe
commit ab815a53ba
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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');