public function verifyFieldHasValue(string $fieldName, $value, ?string $containerName = null): void
    {
        $fieldElement = $this->getField($fieldName, $containerName);
        Assert::assertEquals(
            $value,
            $fieldElement->getValue(),
            'Field has wrong value'
        );
    }
public function verifyFieldHasValue(string $fieldName, $value, ?string $containerName = null): void
    {
        $fieldElement = $this->getField($fieldName, $containerName);
        Assert::assertEquals(
            $value,
            $fieldElement->getValue(),
            'Field has wrong value'
        );
    }
public function verifyFieldHasValue ( string $ fieldName , $ value , ? string $ containerName = null ) : void { $ fieldElement = $ this -> getField ( $ fieldName , $ containerName ) ; Assert :: assertEquals ( $ value , $ fieldElement -> getValue ( ) , 'Field has wrong value' ) ; }
Verify that field values are set.

@param string $fieldName
@param string $value
@param null|string $containerName for fields that defines new field type in content type

@throws \Exception
Verify that field values are set .