eZ\Bundle\EzPublishCoreBundle\Tests\Imagine\IORepositoryResolverTest::testIsStoredImageDoesntExist PHP Method

testIsStoredImageDoesntExist() public method

    public function testIsStoredImageDoesntExist()
    {
        $filter = 'thumbnail';
        $path = 'Tardis/bigger/in-the-inside/RiverSong.jpg';
        $aliasPath = 'Tardis/bigger/in-the-inside/RiverSong_thumbnail.jpg';
        $this->variationPathGenerator->expects($this->once())->method('getVariationPath')->with($path, $filter)->willReturn($aliasPath);
        $this->ioService->expects($this->once())->method('exists')->with($aliasPath)->will($this->returnValue(false));
        $this->assertFalse($this->imageResolver->isStored($path, $filter));
    }