Elgg\Amd\ConfigTest::testCanConfigureModulePaths PHP 메소드

testCanConfigureModulePaths() 공개 메소드

    public function testCanConfigureModulePaths()
    {
        $hooks = new \Elgg\PluginHooksService();
        $amdConfig = new \Elgg\Amd\Config($hooks);
        $amdConfig->addPath('jquery', '/some/path.js');
        $this->assertTrue($amdConfig->hasModule('jquery'));
        $configArray = $amdConfig->getConfig();
        $this->assertEquals(array('/some/path'), $configArray['paths']['jquery']);
        $amdConfig->removePath('jquery', '/some/path.js');
        $this->assertFalse($amdConfig->hasModule('jquery'));
    }