protected function RngEventTypeEntityTest::createEventTypeBase in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::createEventTypeBase()
- 3.x tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::createEventTypeBase()
Create a event type with only required info.
Parameters
array $values: Default values to use when creating the event type.
Return value
\Drupal\rng\EventTypeInterface An new event type entity.
4 calls to RngEventTypeEntityTest::createEventTypeBase()
- RngEventTypeEntityTest::testGetDefaultRegistrantType in tests/
src/ Kernel/ RngEventTypeEntityTest.php - Test default registrant type defaults.
- RngEventTypeEntityTest::testGetDefaultRegistrantTypeDefault in tests/
src/ Kernel/ RngEventTypeEntityTest.php - Test getting default registrant type defaults set.
- RngEventTypeEntityTest::testGetIdentityTypeEntityFormModes in tests/
src/ Kernel/ RngEventTypeEntityTest.php - Test getting all identity type form modes.
- RngEventTypeEntityTest::testGetIdentityTypeEntityFormModesNoDefaults in tests/
src/ Kernel/ RngEventTypeEntityTest.php - Test getting all identity type form modes when no defaults set.
File
- tests/
src/ Kernel/ RngEventTypeEntityTest.php, line 84
Class
- RngEventTypeEntityTest
- Tests event type entities.
Namespace
Drupal\Tests\rng\KernelCode
protected function createEventTypeBase($values = []) {
$event_type = EventType::create($values + [
'id' => $this
->randomMachineName(),
'label' => $this
->randomMachineName(),
'entity_type' => 'entity_test',
'bundle' => 'entity_test',
]);
return $event_type;
}