Exemple #1
0
 /**
  * @group fieldType
  * @group eztags
  * @covers \Netgen\TagsBundle\Core\Persistence\Legacy\Content\FieldValue\Converter\Tags::toStorageValue
  */
 public function testToStorageValue()
 {
     $value = new FieldValue();
     $value->data = array('key1', 'key2');
     $value->sortKey = false;
     $storageFieldValue = new StorageFieldValue();
     $this->converter->toStorageValue($value, $storageFieldValue);
     $this->assertNull($storageFieldValue->dataText);
     $this->assertNull($storageFieldValue->dataInt);
     $this->assertNull($storageFieldValue->dataFloat);
     $this->assertEquals(0, $storageFieldValue->sortKeyInt);
     $this->assertEquals('', $storageFieldValue->sortKeyString);
 }