You are here

public function BootstrapLibraryUITest::testBootstrapLibraryAdminUiPage in Bootstrap Library 8

Test block demo page exists and functions correctly.

File

src/Tests/BootstrapLibraryUITest.php, line 43
Contains \Drupal\bootstrap_library\Tests\BootstrapLibraryUITest

Class

BootstrapLibraryUITest
Tests that the Bootstrap Library configuration UI exists and stores data correctly.

Namespace

Drupal\bootstrap_library\Tests

Code

public function testBootstrapLibraryAdminUiPage() {
  $field_id = 'edit-bootstrap';
  $this
    ->drupalGet('admin/config/development/bootstrap_library');
  $this
    ->assertFieldByName('bootstrap');
  $this
    ->assertOptionSelected($field_id, 0);
  $this
    ->assertOptionByText($field_id, 'Load locally');
}