You are here

function RngEventTypeMappingFormTest::testMappingForm in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Tests/RngEventTypeMappingFormTest.php \Drupal\rng\Tests\RngEventTypeMappingFormTest::testMappingForm()
  2. 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\Tests

Code

function testMappingForm() {
  $this
    ->drupalGet($this->eventType
    ->toUrl('field-mapping'));
  $this
    ->removeWhiteSpace();
  $this
    ->assertRaw('<td>Registration type</td><td>Select which registration types are valid for this event.</td><td>Exists</td>');
  $this
    ->assertRaw('<td>Registration groups</td><td>New registrations will be added to these groups.</td><td>Exists</td>');
  $this
    ->assertRaw('<td>Accept new registrations</td><td></td><td>Exists</td><td></td>');
  $this
    ->assertRaw('<td>Maximum registrations</td><td>Maximum amount of registrations for this event.</td><td>Exists</td><td></td>');
  $this
    ->assertRaw('<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
    ->assertRaw('<td>Allow duplicate registrants</td><td>Allows a registrant to create more than one registration for this event.</td><td>Exists</td>');
  $this
    ->assertRaw('<td>Minimum registrants</td><td>Minimum number of registrants per registration.</td><td>Exists</td>');
  $this
    ->assertRaw('<td>Maximum registrants</td><td>Maximum number of registrants per registration.</td><td>Exists</td><td></td>');
}