You are here

public function RngEventTypeEntityTest::testGetDefaultRegistrantType in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::testGetDefaultRegistrantType()
  2. 3.x tests/src/Kernel/RngEventTypeEntityTest.php \Drupal\Tests\rng\Kernel\RngEventTypeEntityTest::testGetDefaultRegistrantType()

Test default registrant type defaults.

@covers ::setDefaultRegistrantType @covers ::getDefaultRegistrantType

File

tests/src/Kernel/RngEventTypeEntityTest.php, line 55

Class

RngEventTypeEntityTest
Tests event type entities.

Namespace

Drupal\Tests\rng\Kernel

Code

public function testGetDefaultRegistrantType() {
  $event_type = $this
    ->createEventTypeBase();
  $registrant_type = $this
    ->randomMachineName();
  $event_type
    ->setDefaultRegistrantType($registrant_type);
  $this
    ->assertEquals($registrant_type, $event_type
    ->getDefaultRegistrantType());
}