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