You are here

public function RngEventMetaTest::testRegistrantsMinimumNoDefaultValue in RNG - Events and Registrations 8

Tests minimum registrants is unlimited if there is no field value.

@covers ::getRegistrantsMinimum

File

tests/src/Kernel/RngEventMetaTest.php, line 92

Class

RngEventMetaTest
Tests the event meta class.

Namespace

Drupal\Tests\rng\Kernel

Code

public function testRegistrantsMinimumNoDefaultValue() {
  $event = EntityTest::create();
  $event_meta = $this->eventManager
    ->getMeta($event);
  $this
    ->assertSame(1, $event_meta
    ->getRegistrantsMinimum(), 'Minimum registrants matches empty bundle default.');
}