eZ\Publish\Core\Persistence\Legacy\Tests\Content\StorageHandlerTest::testGetFieldDataNotAvailable PHP Метод

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

    public function testGetFieldDataNotAvailable()
    {
        $storageMock = $this->getStorageMock();
        $storageRegistryMock = $this->getStorageRegistryMock();
        $storageMock->expects($this->once())->method('hasFieldData')->will($this->returnValue(false));
        $storageMock->expects($this->never())->method('getFieldData');
        $storageRegistryMock->expects($this->once())->method('getStorage')->with($this->equalTo('foobar'))->will($this->returnValue($storageMock));
        $field = new Field();
        $field->type = 'foobar';
        $field->value = new FieldValue();
        $handler = $this->getStorageHandler();
        $handler->getFieldData($this->getVersionInfoMock(), $field);
    }