Ignore:
Timestamp:
2007/08/06 14:34:07 (17 years ago)
Author:
nanasess
Message:

LC_Page::getLocation() の $path が絶対パスの場合に対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/test/class/page/LC_Page_Test.php

    r15118 r15213  
    126126     * LC_Page::getLocation() のテストケース. 
    127127     * 
     128     * 絶対パス 
     129     */ 
     130    function testGetLocationWithFullPath() { 
     131        $objPage = new LC_Page(); 
     132        $_SERVER['DOCUMENT_ROOT'] = realpath("../html"); 
     133        $url = $objPage->getLocation("/abouts/index.php"); 
     134 
     135        $this->assertEquals(SITE_URL . "abouts/index.php", $url); 
     136        unset($_SERVER['DOCUMENT_ROOT']); 
     137    } 
     138 
     139    /** 
     140     * LC_Page::getLocation() のテストケース. 
     141     * 
    128142     * QueryString 付与 
    129143     */ 
Note: See TracChangeset for help on using the changeset viewer.