lithium\tests\cases\net\http\MediaTest::testEnvironmentAsset1 PHP Method

testEnvironmentAsset1() public method

Create environment prefix location using lihtium\net\http\Media::location Check if lihtium\net\http\Media::asset return the correct URL for the production environement
    public function testEnvironmentAsset1()
    {
        Media::attach('appcdn', array('production' => array('absolute' => true, 'path' => null, 'scheme' => 'http://', 'host' => 'my.cdnapp.com', 'prefix' => '/assets'), 'test' => array('absolute' => true, 'path' => null, 'scheme' => 'http://', 'host' => 'my.cdntest.com', 'prefix' => '/assets')));
        $env = Environment::get();
        Environment::set('production');
        $result = Media::asset('style', 'css', array('scope' => 'appcdn'));
        $expected = 'http://my.cdnapp.com/assets/css/style.css';
    }