getField() public method

If not set the initialLanguage of the content version is used.
public getField ( string $fieldDefIdentifier, string | null $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field | null
$fieldDefIdentifier string
$languageCode string | null
return eZ\Publish\API\Repository\Values\Content\Field | null A {@link Field} or null if nothing is found
 /**
  * @Given /^the User's email was updated to the new value$/
  */
 public function theUserSEmailWasUpdatedToTheNewValue()
 {
     $field = $this->currentContent->getField('user_account');
     Assertion::assertInstanceOf('eZ\\Publish\\Core\\FieldType\\User\\Value', $field->value);
     Assertion::assertEquals($this->newEmailValue, $field->value->email);
 }