diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index 0ce116a6d..26ff6c68d 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -47,6 +47,18 @@ class AjaxTest extends UnitTestCase { $this->ajax->Javascript = new JavascriptHelper(); } + function testEvalScripts() { + $result = $this->ajax->link('Test Link', '/', array('id' => 'link1', 'update' => 'content', 'evalScripts' => false)); + $expected = 'Test Link'; + $this->assertEqual($result, $expected); + } + + function testAsynchronous() { + $result = $this->ajax->link('Test Link', '/', array('id' => 'link1', 'update' => 'content', 'type' => 'synchronous')); + $expected = 'Test Link'; + $this->assertEqual($result, $expected); + } + function testDraggable() { $result = $this->ajax->drag('id', array('handle' => 'other_id')); $expected = '';