eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\CountryTest::testToStorageValue PHP Method

testToStorageValue() public method

public testToStorageValue ( $data, $sortKey, $dataText, $sortKeyString )
    public function testToStorageValue($data, $sortKey, $dataText, $sortKeyString)
    {
        $value = new FieldValue();
        $value->data = $data;
        $value->sortKey = $sortKey;
        $storageFieldValue = new StorageFieldValue();
        $this->converter->toStorageValue($value, $storageFieldValue);
        self::assertSame($dataText, $storageFieldValue->dataText);
        self::assertSame($sortKeyString, $storageFieldValue->sortKeyString);
    }