public function testGetEditorId()
{
list($register, $configs, $container, $storage, $medias, $tags) = $this->getMocks();
$instance = new EditorHandler($register, $configs, $container, $storage, $medias, $tags);
$mockConfig = m::mock('Xpressengine\\Config\\ConfigEntity');
$mockConfig->shouldReceive('get')->with('someinstanceid')->andReturn('editor/foo@bar');
$configs->shouldReceive('get')->once()->with(EditorHandler::MAP_CONFIG_NAME)->andReturn($mockConfig);
$editorId = $instance->getEditorId('someinstanceid');
$this->assertEquals('editor/foo@bar', $editorId);
}