spec\Newscoop\Services\EditorServiceSpec::it_should_get_3rd_party_editor_link PHP Метод

    public function it_should_get_3rd_party_editor_link(Article $article, TraceableEventDispatcher $dispatcher, GenericEvent $event)
    {
        $dispatcher->dispatch('newscoop_admin.editor', Argument::type('Newscoop\\EventDispatcher\\Events\\GenericEvent'))->shouldBeCalled()->willReturn($event);
        $link = '/admin/some/3rd/party/editor/link/10/1';
        $event->hasArgument('link')->willReturn(true);
        $event->getArgument('link')->willReturn($link);
        $this->getLink($article)->shouldReturn($link);
    }