public function testCanConfigureModuleShims()
{
$hooks = new \Elgg\PluginHooksService();
$amdConfig = new \Elgg\Amd\Config($hooks);
$amdConfig->addShim('jquery', array('deps' => array('dep'), 'exports' => 'jQuery', 'random' => 'stuff'));
$this->assertTrue($amdConfig->hasShim('jquery'));
$this->assertTrue($amdConfig->hasModule('jquery'));
$configArray = $amdConfig->getConfig();
$this->assertEquals(array('dep'), $configArray['shim']['jquery']['deps']);
$this->assertEquals('jQuery', $configArray['shim']['jquery']['exports']);
$this->assertFalse(isset($configArray['shim']['jquery']['random']));
$amdConfig->removeShim('jquery');
$this->assertFalse($amdConfig->hasShim('jquery'));
$this->assertFalse($amdConfig->hasModule('jquery'));
}