Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text with summary support. #38

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,23 @@ public function assertEntityFieldValueLink($field, $value)

}//end assertEntityFieldValueLink()

/**
* Test a text field for a partial string.
*
* @param \Drupal\Core\Field\FieldItemList $field
* A Drupal field object.
* @param mixed $value
* The value to look for.
*
* @throws \Exception when value was not found.
*
* @return void
*/
public function assertEntityFieldValueTextWithSummary($field, $value)
{
// Re-use the assertEntityFieldVallueTextLong for now.
return $this->assertEntityFieldValueTextLong($field, $value);
}

/**
* Test a text field for a partial string.
Expand Down Expand Up @@ -722,6 +739,8 @@ public function assertEntityFieldValueTextLong($field, $value)
return;
}
}

throw new \Exception(sprintf('Field value of "%s" does not contain expected value "%s"', $field_value, $value));
}//end assertEntityFieldValueTextLong()


Expand Down