public function testGetWithoutToken() { $this->tokenStorage->getToken()->willReturn(null); $this->mediaRepository->findMedia(Argument::cetera())->willReturn([])->shouldBeCalled(); $this->mediaRepository->count(Argument::cetera())->shouldBeCalled(); $this->mediaManager->get(1); }