Skip to content

Commit

Permalink
Fixing test broken in [8136]. Adding Configure::write() to prevent fa…
Browse files Browse the repository at this point in the history
…ils when running helpers as a group.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8143 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
markstory committed Apr 15, 2009
1 parent fcb8ef2 commit 32107f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/view/helpers/ajax.test.php
Expand Up @@ -301,7 +301,7 @@ function testDraggable() {
);
$this->assertTags($result, $expected);

$result = $this->Ajax->drag('id', array('onDrag' => 'doDrag', 'onDropped' => 'doDrop'));
$result = $this->Ajax->drag('id', array('onDrag' => 'doDrag', 'onEnd' => 'doEnd'));
$this->assertPattern('/onDrag:doDrag/', $result);
$this->assertPattern('/onEnd:doEnd/', $result);
}
Expand Down
1 change: 1 addition & 0 deletions cake/tests/cases/libs/view/helpers/javascript.test.php
Expand Up @@ -141,6 +141,7 @@ function testConstruct() {
* @return void
*/
function testLink() {
Configure::write('Asset.timestamp', false);
$result = $this->Javascript->link('script.js');
$expected = '<script type="text/javascript" src="js/script.js"></script>';
$this->assertEqual($result, $expected);
Expand Down

0 comments on commit 32107f5

Please sign in to comment.