protected function EmbeddedScheduledUpdateTypeTestBase::checkReferenceOnEntityType in Scheduled Updates 8
Make sure that reference field was created and put on target entity type.
Parameters
string $entity_type:
string $bundle:
string $reference_field_label:
string $reference_field_name:
Throws
\Exception
1 call to EmbeddedScheduledUpdateTypeTestBase::checkReferenceOnEntityType()
- EmbeddedScheduledUpdateTypeTestBase::checkAfterTypeCreated in tests/
src/ FunctionalJavascript/ EmbeddedScheduledUpdateTypeTestBase.php
File
- tests/
src/ FunctionalJavascript/ EmbeddedScheduledUpdateTypeTestBase.php, line 108 - Contains \Drupal\Tests\scheduled_updates\EmbeddedScheduledUpdateTypeTestBase.
Class
- EmbeddedScheduledUpdateTypeTestBase
- Base test class for embedded update types.
Namespace
Drupal\Tests\scheduled_updates\FunctionalJavascriptCode
protected function checkReferenceOnEntityType($entity_type, $bundle, $reference_field_label, $reference_field_name) {
$this
->loginWithPermissions([
"create {$bundle} content",
]);
$this
->drupalGet("node/add/{$bundle}");
$this
->assertSession()
->pageTextContains($reference_field_label);
// @todo Check html for field
$this
->loginLastUser();
// $field_id = 'edit-' . str_replace('_', '-', $reference_field_name);
//$this->assertFieldbyId($field_id);
}