Bolt\Tests\Configuration\ResourceManagerTest::testShortAliasedPaths PHP Метод

testShortAliasedPaths() публичный Метод

    public function testShortAliasedPaths()
    {
        $config = new ResourceManager(new \Pimple(['rootpath' => PHPUNIT_WEBROOT, 'pathmanager' => new PlatformFileSystemPathFactory()]));
        $this->assertEquals(Path::fromString(PHPUNIT_WEBROOT), $config->getPath('root'));
        $this->assertEquals(Path::fromString(PHPUNIT_WEBROOT), $config->getPath('rootpath'));
        $this->assertEquals(Path::fromString(PHPUNIT_WEBROOT . '/app'), $config->getPath('app'));
        $this->assertEquals(Path::fromString(PHPUNIT_WEBROOT . '/files'), $config->getPath('files'));
        $this->assertInstanceOf('Eloquent\\Pathogen\\PathInterface', $config->getPathObject('root'));
    }