eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\RatingTest::testToStorageValueDisabled PHP Method

testToStorageValueDisabled() public method

    public function testToStorageValueDisabled()
    {
        $value = new FieldValue();
        $value->data = true;
        $value->sortKey = false;
        $storageFieldValue = new StorageFieldValue();
        $this->converter->toStorageValue($value, $storageFieldValue);
        self::assertSame(1, $storageFieldValue->dataInt);
    }