public function RngEventTypeMappingFormTest::testMappingForm in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Tests/RngEventTypeMappingFormTest.php \Drupal\rng\Tests\RngEventTypeMappingFormTest::testMappingForm()
- 3.x src/Tests/RngEventTypeMappingFormTest.php \Drupal\rng\Tests\RngEventTypeMappingFormTest::testMappingForm()
Test default state of the mapping form with a fresh event type.
File
- src/
Tests/ RngEventTypeMappingFormTest.php, line 40
Class
- RngEventTypeMappingFormTest
- Tests RNG event type mapping form.
Namespace
Drupal\rng\TestsCode
public function testMappingForm() {
$this
->drupalGet($this->eventType
->toUrl('field-mapping'));
//$this->removeWhiteSpace();
$this
->assertSession()
->responseContains('Select which registration types are valid for this event.');
$this
->assertSession()
->responseContains('<td>Registration groups</td><td>New registrations will be added to these groups.</td><td>Exists</td>');
$this
->assertSession()
->responseContains('<td>Accept new registrations</td><td></td><td>Exists</td><td></td>');
$this
->assertSession()
->responseContains('<td>Maximum registrations</td><td>Maximum amount of registrations for this event.</td><td>Exists</td><td></td>');
$this
->assertSession()
->responseContains('<td>Reply-to e-mail address</td><td>E-mail address that appears as reply-to when emails are sent from this event. Leave empty to use site default.</td><td>Exists</td>');
$this
->assertSession()
->responseContains('<td>Allow duplicate registrants</td><td>Allows a registrant to create more than one registration for this event.</td><td>Exists</td>');
$this
->assertSession()
->responseContains('Minimum number of registrants per registration.');
$this
->assertSession()
->responseContains('<td>Maximum registrants</td><td>Maximum number of registrants per registration.</td><td>Exists</td><td></td>');
}