public function testRemoveSerie() { $this->assumeSerie($serie = new SerieToken(3, 'abc', 'def')); $serie->setExpiresAt(new \DateTime('tomorrow')); $this->mapper->expects($this->once())->method('remove')->with($serie); $this->service->removeSerie(3, 'abc'); }