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

testStore() public method

public testStore ( )
    public function testStore()
    {
        $filter = 'thumbnail';
        $path = 'Tardis/bigger/in-the-inside/RiverSong.jpg';
        $aliasPath = 'Tardis/bigger/in-the-inside/RiverSong_thumbnail.jpg';
        $binary = new Binary('foo content', 'some/mime-type');
        $createStruct = new BinaryFileCreateStruct();
        $this->ioService->expects($this->once())->method('newBinaryCreateStructFromLocalFile')->will($this->returnValue($createStruct));
        $this->ioService->expects($this->once())->method('createBinaryFile');
        $this->imageResolver->store($binary, $path, $filter);
    }