eZ\Publish\Core\MVC\Symfony\Cache\Tests\Http\InstantCachePurgerTest::testPurge PHP Метод

testPurge() публичный Метод

public testPurge ( )
    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));
    }