You are here

public function RngEventMetaTest::testRegistrantsMaximumNoDefaultValue in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/RngEventMetaTest.php \Drupal\Tests\rng\Kernel\RngEventMetaTest::testRegistrantsMaximumNoDefaultValue()
  2. 8 tests/src/Kernel/RngEventMetaTest.php \Drupal\Tests\rng\Kernel\RngEventMetaTest::testRegistrantsMaximumNoDefaultValue()

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

@covers ::getRegistrantsMaximum

File

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

Class

RngEventMetaTest
Tests the event meta class.

Namespace

Drupal\Tests\rng\Kernel

Code

public function testRegistrantsMaximumNoDefaultValue() {
  $event = EntityTest::create();
  $event_meta = $this->eventManager
    ->getMeta($event);
  $this
    ->assertSame($this->unlimited, $event_meta
    ->getRegistrantsMaximum(), 'Maximum registrants matches empty bundle default.');
}