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