You are here

public function RngEventTypeEntityTest::testGetIdentityTypeEntityFormModesNoDefaults in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::testGetIdentityTypeEntityFormModesNoDefaults()
  2. 8 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\Kernel

Code

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);
}