mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 05:09:56 +09:00
exclude FrontEndFileHandlerTest.php
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9877 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b09862088a
commit
39fd65dc7e
4 changed files with 31 additions and 22 deletions
|
|
@ -5,16 +5,13 @@ if(!defined('__XE__')) require dirname(__FILE__).'/../../Bootstrap.php';
|
|||
require_once _XE_PATH_.'classes/handler/Handler.class.php';
|
||||
require_once _XE_PATH_.'classes/frontendfile/FrontEndFileHandler.class.php';
|
||||
|
||||
$_SERVER['SCRIPT_NAME'] = '/xe/index.php';
|
||||
|
||||
class FrontEndFileHandlerTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testHandler()
|
||||
{
|
||||
global $request_url, $use_cdn;
|
||||
|
||||
$request_url = 'http://test.com';
|
||||
$use_cdn = 'Y';
|
||||
Context::setUseCdn('Y');
|
||||
Context::setRequestUrl('http://test.com');
|
||||
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
||||
|
|
@ -176,7 +173,7 @@ class FrontEndFileHandlerTest extends PHPUnit_Framework_TestCase
|
|||
// CDN(no cdn setting)
|
||||
unset($handler);
|
||||
unset($expected);
|
||||
$use_cdn = 'N';
|
||||
Context::setUseCdn('N');
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
||||
$handler->loadFile(array('./common/css/common.css'), true, 'http://static.xpressengine.com/core/', 'v');
|
||||
|
|
@ -187,8 +184,8 @@ class FrontEndFileHandlerTest extends PHPUnit_Framework_TestCase
|
|||
// CDN(use ssl)
|
||||
unset($handler);
|
||||
unset($expected);
|
||||
$use_cdn = 'Y';
|
||||
$request_url = 'https://test.com';
|
||||
Context::setUseCdn('Y');
|
||||
Context::setRequestUrl('https://test.com');
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
||||
$handler->loadFile(array('./common/css/common.css'), true, 'http://static.xpressengine.com/core/', 'v');
|
||||
|
|
@ -199,8 +196,8 @@ class FrontEndFileHandlerTest extends PHPUnit_Framework_TestCase
|
|||
// external file
|
||||
unset($handler);
|
||||
unset($expected);
|
||||
$use_cdn = 'Y';
|
||||
$request_url = 'http://test.com';
|
||||
Context::setUseCdn('Y');
|
||||
Context::setRequestUrl('http://test.com');
|
||||
$handler = new FrontEndFileHandler();
|
||||
|
||||
$handler->loadFile(array('http://external.com/css/style2.css'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue