- Timestamp:
- 2010/07/26 17:16:59 (14 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:18762
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/SC_DbConn.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_DbConn.php
html/define.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Fdefine.php
html/install/index.php 16809@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Findex.php
test/README.txt 18218@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2FREADME.txt
test/TestSuite.php 15114@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2FTestSuite.php
test/class/SC_DbConn_Test.php 18387@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2FSC_DbConn_Test.php
test/class/db/DB_AllTests.php 18218@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2Fdb%2FDB_AllTests.php
test/class/db/SC_DB_DBFactory_Test.php 15242@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2Fclass%2Fdb%2FSC_DB_DBFactory_Test.php
test/class/db/SC_DB_MasterData_Test.php 15134@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2Fclass%2Fdb%2FSC_DB_MasterData_Test.php
test/class/helper/Helper_AllTests.php 18218@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2Fhelper%2FHelper_AllTests.php
test/class/helper/SC_Helper_DB_Test.php 15242@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2Fclass%2Fhelper%2FSC_Helper_DB_Test.php
test/class/logger/GC_Log_Log4php_Test.php 18220@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2Flogger%2FGC_Log_Log4php_Test.php
test/class/logger/GC_Logger_Test.php 18220@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2Flogger%2FGC_Logger_Test.php
test/class/page/LC_Page_Test.php 15114@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2Fclass%2Fpage%2FLC_Page_Test.php
test/class/page/Page_AllTests.php 18218@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Ftest%2Fclass%2Fpage%2FPage_AllTests.php
test/require.php require.php-20100726065552-t2b4u96mp8ikqvjf-1- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20100726081655-tqxqwy02bxqhswcu
- bzr:revno:
- 2246
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-parents:
data/class/SC_DbConn.php ohkouchi@loop-az.jp-20100623032937-dhwktuevjyk0jv13
html/define.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/comu-ver2:18653
html/install/index.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/README.txt svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/comu-ver2:18218
test/TestSuite.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/SC_DbConn_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/db/DB_AllTests.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/db/SC_DB_DBFactory_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/db/SC_DB_MasterData_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/helper/Helper_AllTests.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/helper/SC_Helper_DB_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/logger/GC_Log_Log4php_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/logger/GC_Logger_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/page/LC_Page_Test.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
test/class/page/Page_AllTests.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m- bzr:timestamp:
- 2010-07-26 17:16:55.075999975 +0900
- bzr:user-agent:
- bzr2.1.2+bzr-svn1.0.2
- svn:original-date:
- 2010-07-26T08:16:55.076000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/test/class/page/LC_Page_Test.php
r18701 r18763 23 23 24 24 // {{{ requires 25 require_once("../html/require.php"); 26 require_once("../data/class/pages/LC_Page.php"); 27 require_once("PHPUnit/Framework.php"); 25 require_once(realpath(dirname(__FILE__)) . '/../../require.php'); 26 require_once(realpath(dirname(__FILE__)) . '/../../../data/class/pages/LC_Page.php'); 28 27 29 28 /** … … 141 140 function testGetLocation() { 142 141 $objPage = new LC_Page(); 143 $_SERVER['DOCUMENT_ROOT'] = realpath( "../html");144 $url = $objPage->getLocation(" ../html/abouts/index.php");142 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); 143 $url = $objPage->getLocation("/abouts/index.php"); 145 144 146 145 $this->assertEquals(SITE_URL . "abouts/index.php", $url); … … 155 154 function testGetLocationWithFullPath() { 156 155 $objPage = new LC_Page(); 157 $_SERVER['DOCUMENT_ROOT'] = realpath( "../html");156 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); 158 157 $url = $objPage->getLocation(URL_DIR . 'abouts/index.php'); 159 158 … … 169 168 function testGetLocationWithQueryString() { 170 169 $objPage = new LC_Page(); 171 $_SERVER['DOCUMENT_ROOT'] = realpath( "../html");170 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); 172 171 173 172 $queryString = array("mode" => "update", "type" => "text"); 174 $url = $objPage->getLocation(" ../html/abouts/index.php", $queryString);173 $url = $objPage->getLocation("/abouts/index.php", $queryString); 175 174 176 175 $this->assertEquals(SITE_URL . "abouts/index.php?mode=update&type=text", $url); … … 185 184 function testGetLocationUseSSL() { 186 185 $objPage = new LC_Page(); 187 $_SERVER['DOCUMENT_ROOT'] = realpath( "../html");186 $_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . "/../../../html"); 188 187 189 188 $queryString = array("mode" => "update", "type" => "text"); 190 $url = $objPage->getLocation(" ../html/abouts/index.php", $queryString, true);189 $url = $objPage->getLocation("/abouts/index.php", $queryString, true); 191 190 192 191 $this->assertEquals(SSL_URL . "abouts/index.php?mode=update&type=text", $url); … … 201 200 function testGetLocationWithDocumentRoot() { 202 201 $objPage = new LC_Page(); 203 $documentRoot = realpath( "../html");202 $documentRoot = realpath(dirname(__FILE__) . "/../../../html"); 204 203 205 204 $queryString = array("mode" => "update", "type" => "text"); 206 $url = $objPage->getLocation(" ../html/abouts/index.php", array(),205 $url = $objPage->getLocation("/abouts/index.php", array(), 207 206 false, $documentRoot); 208 207
Note: See TracChangeset
for help on using the changeset viewer.