You are here

protected function YamlFormWizardTest::assertCurrentPage in YAML Form 8

Assert the current page using the progress bar's markup.

Parameters

string $title: The title of the current page.

1 call to YamlFormWizardTest::assertCurrentPage()
YamlFormWizardTest::testWizard in src/Tests/YamlFormWizardTest.php
Test form custom wizard, advanced wizard, and custom wizard settings.

File

src/Tests/YamlFormWizardTest.php, line 330

Class

YamlFormWizardTest
Tests for form wizard.

Namespace

Drupal\yamlform\Tests

Code

protected function assertCurrentPage($title) {
  $this
    ->assertPattern('|<li class="yamlform-progress-bar__page yamlform-progress-bar__page--current">\\s+<b>' . $title . '</b>|');
}