public function testPurge() { $locationIds = array(123, 456, 789); $this->purgeClient->expects($this->once())->method('purge')->with($locationIds)->will($this->returnArgument(0)); $purger = new InstantCachePurger($this->purgeClient, $this->contentService, $this->eventDispatcher); $this->assertSame($locationIds, $purger->purge($locationIds)); }