Changeset 19802 for branches/version-2_5-dev/test
- Timestamp:
- 2010/12/31 10:46:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/test/class/page/LC_Page_Test.php
r18820 r19802 49 49 function testSendRedirect() { 50 50 $objPage = new LC_Page(); 51 $result = $objPage->sendRedirect( SITE_URL);51 $result = $objPage->sendRedirect(HTTP_URL); 52 52 53 53 $this->assertEquals(true, empty($result)); … … 143 143 $url = $objPage->getLocation("/abouts/index.php"); 144 144 145 $this->assertEquals( SITE_URL . "abouts/index.php", $url);145 $this->assertEquals(HTTP_URL . "abouts/index.php", $url); 146 146 unset($_SERVER['DOCUMENT_ROOT']); 147 147 } … … 155 155 $objPage = new LC_Page(); 156 156 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); 157 $url = $objPage->getLocation(URL_ DIR. 'abouts/index.php');158 159 $this->assertEquals( SITE_URL . "abouts/index.php", $url);157 $url = $objPage->getLocation(URL_PATH . 'abouts/index.php'); 158 159 $this->assertEquals(HTTP_URL . "abouts/index.php", $url); 160 160 unset($_SERVER['DOCUMENT_ROOT']); 161 161 } … … 173 173 $url = $objPage->getLocation("/abouts/index.php", $queryString); 174 174 175 $this->assertEquals( SITE_URL . "abouts/index.php?mode=update&type=text", $url);176 unset($_SERVER['DOCUMENT_ROOT']); 177 } 178 179 /** 180 * LC_Page::getLocation() のテストケース. 181 * 182 * SSL_URL 使用175 $this->assertEquals(HTTP_URL . "abouts/index.php?mode=update&type=text", $url); 176 unset($_SERVER['DOCUMENT_ROOT']); 177 } 178 179 /** 180 * LC_Page::getLocation() のテストケース. 181 * 182 * HTTPS_URL 使用 183 183 */ 184 184 function testGetLocationUseSSL() { … … 189 189 $url = $objPage->getLocation("/abouts/index.php", $queryString, true); 190 190 191 $this->assertEquals( SSL_URL . "abouts/index.php?mode=update&type=text", $url);191 $this->assertEquals(HTTPS_URL . "abouts/index.php?mode=update&type=text", $url); 192 192 unset($_SERVER['DOCUMENT_ROOT']); 193 193 } … … 206 206 false, $documentRoot); 207 207 208 $this->assertEquals( SITE_URL . "abouts/index.php", $url);208 $this->assertEquals(HTTP_URL . "abouts/index.php", $url); 209 209 } 210 210 }
Note: See TracChangeset
for help on using the changeset viewer.
