Permalink
Browse files

Fixing test broken in [8136]. Adding Configure::write() to prevent fa…

…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...
1 parent fcb8ef2 commit 32107f5fbaa0493494baf24191e6586942808bd3 @markstory markstory committed Apr 15, 2009
@@ -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);
}
@@ -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);

0 comments on commit 32107f5

Please sign in to comment.