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

testToHash() public method

public testToHash ( mixed $inputValue, array $expectedResult )
$inputValue mixed
$expectedResult array
    public function testToHash($inputValue, $expectedResult)
    {
        $fieldType = $this->getFieldTypeUnderTest();
        $actualResult = $fieldType->toHash($inputValue);
        $this->assertIsValidHashValue($actualResult);
        $this->assertEquals($expectedResult, $actualResult, 'toHash() method did not create expected result.');
    }