public function testGetAll() { list($register, $configs, $container, $storage, $medias, $tags) = $this->getMocks(); $instance = new EditorHandler($register, $configs, $container, $storage, $medias, $tags); $register->shouldReceive('get')->once()->with('editor')->andReturn(['editor/foo@bar' => 'class1', 'editor/baz@qux' => 'class2']); $all = $instance->getAll(); $this->assertEquals(['editor/foo@bar' => 'class1', 'editor/baz@qux' => 'class2'], $all); }