/** * @expectedException \Alchemy\Phrasea\Exception\RuntimeException */ public function testCreateAPermalinkAlreadyCreated() { media_Permalink_Adapter::create(self::$DI['app'], self::$DI['record_1']->get_databox(), self::$DI['record_1']->get_subdef('document')); }