public function testGetConfigTriggersTheConfigAmdPluginHook()
{
$hooks = new \Elgg\PluginHooksService();
$amdConfig = new \Elgg\Amd\Config($hooks);
$test_input = ['test' => 'test_' . time()];
$hooks->registerHandler('config', 'amd', function () use($test_input) {
return $test_input;
});
$config = $amdConfig->getConfig();
$this->assertEquals($test_input, $config);
}