MiniAsset\Test\TestCase\AssetConfigTest::testPaths PHP Method

testPaths() public method

public testPaths ( )
    public function testPaths()
    {
        $this->config->paths('js', null, array('/path/to/files', 'WEBROOT/js'));
        $result = $this->config->paths('js');
        $result = str_replace('/', DS, $result);
        $expected = array(DS . 'path' . DS . 'to' . DS . 'files', WEBROOT . 'js');
        $this->assertEquals($expected, $result);
        $result = $this->config->paths('js', 'libs.js');
        $result = str_replace('/', DS, $result);
        $expected[] = WEBROOT . 'js' . DS . 'libs' . DS . '*';
        $this->assertEquals($expected, $result);
    }