eZ\Publish\Core\FieldType\Tests\FieldTypeTest::testAcceptValue PHP Method

testAcceptValue() public method

public testAcceptValue ( mixed $inputValue, mixed $expectedOutputValue )
$inputValue mixed
$expectedOutputValue mixed
    public function testAcceptValue($inputValue, $expectedOutputValue)
    {
        $fieldType = $this->getFieldTypeUnderTest();
        $outputValue = $fieldType->acceptValue($inputValue);
        $this->assertEquals($expectedOutputValue, $outputValue, 'acceptValue() did not convert properly.');
    }