You are here

public function AdminFunctionalityTest::testPages in Backup and Migrate 5.0.x

Same name and namespace in other branches
  1. 8.4 tests/src/Functional/AdminFunctionalityTest.php \Drupal\Tests\backup_migrate\Functional\AdminFunctionalityTest::testPages()

Tests each of the admin pages loads correctly.

This is to be used until all of the admin functionality has separate

@dataProvider pagesListProvider

Parameters

string $path: The path to check.

string $string_on_page: A string to look for on the page above..

File

tests/src/Functional/AdminFunctionalityTest.php, line 67

Class

AdminFunctionalityTest
Checks if admin functionality works correctly.

Namespace

Drupal\Tests\backup_migrate\Functional

Code

public function testPages($path, $string_on_page) {
  $this
    ->drupalGet($path);
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains($string_on_page);
}