BootstrapLibraryUITest.php in Bootstrap Library 8
File
src/Tests/BootstrapLibraryUITest.php
View source
<?php
namespace Drupal\bootstrap_library\Tests;
use Drupal\simpletest\WebTestBase;
class BootstrapLibraryUITest extends WebTestBase {
public static $modules = array(
'bootstrap_library',
);
protected $adminUser;
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser(array(
'administer site configuration',
));
$this
->drupalLogin($this->adminUser);
}
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');
}
}