/** * @test */ public function it_handles_rebuilding_projections() { $stream = $this->prophesize(EventStreamInterface::class); $this->eventStore->loadAll()->willReturn($stream); $this->projectionManager->clear()->shouldBeCalled(); $this->projectionManager->notify($stream)->shouldBeCalled(); $this->command->handle($this->projectionManager->reveal(), $this->eventStore->reveal()); }