From abd94bc0683637c9ec7473429662bd151d0a3cdc Mon Sep 17 00:00:00 2001 From: nate Date: Mon, 4 Feb 2008 17:12:19 +0000 Subject: [PATCH] Additional path and extension tests for JavascriptHelper::link() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6434 3807eeeb-6ff5-0310-8944-8be069107fe0 --- .../cases/libs/view/helpers/javascript.test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cake/tests/cases/libs/view/helpers/javascript.test.php b/cake/tests/cases/libs/view/helpers/javascript.test.php index 8843d39bc..c83a8e414 100644 --- a/cake/tests/cases/libs/view/helpers/javascript.test.php +++ b/cake/tests/cases/libs/view/helpers/javascript.test.php @@ -84,6 +84,18 @@ class JavascriptTest extends UnitTestCase { $result = $this->Javascript->link('/plugin/js/jquery-1.1.2'); $expected = ''; $this->assertEqual($result, $expected); + + $result = $this->Javascript->link('/some_other_path/myfile.1.2.2.min.js'); + $expected = ''; + $this->assertEqual($result, $expected); + + $result = $this->Javascript->link('some_other_path/myfile.1.2.2.min.js'); + $expected = ''; + $this->assertEqual($result, $expected); + + $result = $this->Javascript->link('some_other_path/myfile.1.2.2.min'); + $expected = ''; + $this->assertEqual($result, $expected); } function testObjectGeneration() {