Skip to content

Commit

Permalink
Updating tests to account for attribute whitespace change.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 5, 2011
1 parent 8f66fe6 commit f58f376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/view/helpers/form.test.php
Expand Up @@ -5251,7 +5251,7 @@ public function testPostButton() {
));

$result = $this->Form->postButton('Send', '/', array('data' => array('extra' => 'value')));
$this->assertTrue(strpos($result, '<input type="hidden" name="data[extra]" value="value"/>') !== false);
$this->assertTrue(strpos($result, '<input type="hidden" name="data[extra]" value="value"/>') !== false);
}

/**
Expand Down Expand Up @@ -5291,7 +5291,7 @@ public function testPostLink() {
));

$result = $this->Form->postLink('Delete', '/posts/delete', array('data' => array('id' => 1)));
$this->assertTrue(strpos($result, '<input type="hidden" name="data[id]" value="1"/>') !== false);
$this->assertTrue(strpos($result, '<input type="hidden" name="data[id]" value="1"/>') !== false);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/view/helpers/html.test.php
Expand Up @@ -1298,7 +1298,7 @@ public function testUseTag() {
$result = $this->Html->useTag('formend');
$this->assertTags($result, '/form');

$result = $this->Html->useTag('form', 'test');
$result = $this->Html->useTag('form', ' test');
$this->assertEqual($result, '<form test>');

$result = $this->Html->useTag('form', array('test' => 'ok'));
Expand Down

0 comments on commit f58f376

Please sign in to comment.