From 894a33d744ede7ec9977133e632279ed55976f4f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 29 Jan 2009 03:22:02 +0000 Subject: 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 --- core/tests/Albums_Controller_Test.php | 3 +-- core/tests/Photos_Controller_Test.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'core/tests') 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); -- cgit v1.2.3