public function RngEventMetaTest::testRegistrantsMaximumEventValue in RNG - Events and Registrations 8
Tests maximum registrants value when set on event entity.
@covers ::getRegistrantsMaximum
File
- tests/
src/ Kernel/ RngEventMetaTest.php, line 159
Class
- RngEventMetaTest
- Tests the event meta class.
Namespace
Drupal\Tests\rng\KernelCode
public function testRegistrantsMaximumEventValue() {
$event = EntityTest::create([
EventManagerInterface::FIELD_REGISTRATION_REGISTRANTS_MAXIMUM => 555,
]);
$event_meta = $this->eventManager
->getMeta($event);
$this
->assertSame(555, $event_meta
->getRegistrantsMaximum(), 'Maximum registrants matches event field value.');
}