/**
* @test
*/
public function setDispatchedEmitsSignalIfDispatched()
{
$mockDispatcher = $this->createMock(Dispatcher::class);
$mockDispatcher->expects($this->once())->method('dispatch')->with(ActionRequest::class, 'requestDispatched', [$this->actionRequest]);
$mockObjectManager = $this->createMock(ObjectManagerInterface::class);
$mockObjectManager->expects($this->any())->method('get')->will($this->returnValue($mockDispatcher));
$this->inject($this->actionRequest, 'objectManager', $mockObjectManager);
$this->actionRequest->setDispatched(true);
}