summaryrefslogtreecommitdiff
path: root/core/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-29 03:22:02 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-29 03:22:02 +0000
commit894a33d744ede7ec9977133e632279ed55976f4f (patch)
tree10807ac32660ea499881fd1476c8d2cf696bd1c5 /core/tests
parentad82721c3b164438d01ecc28350d8168894512a8 (diff)
Add support for pretty urls. So now instead of urls like:
http://example.com/gallery3/index.php/albums/2 http://example.com/gallery3/index.php/photos/9 You'll see urls like: http://example.com/gallery3/index.php/Family/Weddings http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/Albums_Controller_Test.php3
-rw-r--r--core/tests/Photos_Controller_Test.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/core/tests/Albums_Controller_Test.php b/core/tests/Albums_Controller_Test.php
index 06360b79..57a5bf64 100644
--- a/core/tests/Albums_Controller_Test.php
+++ b/core/tests/Albums_Controller_Test.php
@@ -40,8 +40,7 @@ class Albums_Controller_Test extends Unit_Test_Case {
ob_end_clean();
$this->assert_equal(
- json_encode(array("result" => "success",
- "location" => "http://./index.php/albums/$album->id")),
+ json_encode(array("result" => "success", "location" => "http://./index.php/test")),
$results);
$this->assert_equal("new title", $album->title);
$this->assert_equal("new description", $album->description);
diff --git a/core/tests/Photos_Controller_Test.php b/core/tests/Photos_Controller_Test.php
index d48ae35e..2b28f774 100644
--- a/core/tests/Photos_Controller_Test.php
+++ b/core/tests/Photos_Controller_Test.php
@@ -41,7 +41,7 @@ class Photos_Controller_Test extends Unit_Test_Case {
$this->assert_equal(
json_encode(array("result" => "success",
- "location" => "http://./index.php/photos/$photo->id")),
+ "location" => "http://./index.php/test.jpeg")),
$results);
$this->assert_equal("new title", $photo->title);
$this->assert_equal("new description", $photo->description);