Elgg\Amd\ConfigTest::testThrowsOnBadShim PHP Method

testThrowsOnBadShim() public method

public testThrowsOnBadShim ( )
    public function testThrowsOnBadShim()
    {
        $hooks = new \Elgg\PluginHooksService();
        $amdConfig = new \Elgg\Amd\Config($hooks);
        $amdConfig->addShim('bad_shim', array('invalid' => 'config'));
        $configArray = $amdConfig->getConfig();
        $this->assertEquals(array('jquery'), $configArray['deps']);
    }