public function RngEventTypeEntityTest::testGetIdentityTypeEntityFormModeNoDefaults in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::testGetIdentityTypeEntityFormModeNoDefaults()
Tests getting a single identity type form mode when no defaults set.
@covers ::getIdentityTypeEntityFormMode
File
- tests/
src/ Kernel/ RngEventTypeEntityTest.php, line 38
Class
- RngEventTypeEntityTest
- Tests event type entities.
Namespace
Drupal\Tests\rng\KernelCode
public function testGetIdentityTypeEntityFormModeNoDefaults() {
$people_type = [
'entity_type' => $this
->randomMachineName(),
'bundle' => $this
->randomMachineName(),
];
$values['people_types'][] = $people_type;
$event_type = $this
->createEventTypeBase($values);
$result = $event_type
->getIdentityTypeEntityFormMode($people_type['entity_type'], $people_type['bundle']);
$this
->assertEquals('default', $result);
}