public function RngEventMetaTest::testRegistrantsMaximumNoDefaultValue in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/RngEventMetaTest.php \Drupal\Tests\rng\Kernel\RngEventMetaTest::testRegistrantsMaximumNoDefaultValue()
- 3.x 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 148
Class
- RngEventMetaTest
- Tests the event meta class.
Namespace
Drupal\Tests\rng\KernelCode
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.');
}