public function AssetInjectorCssTest::testCssPermissionGranted in Asset Injector 8.2
Tests a user WITH permission has access.
Throws
\Exception
2 calls to AssetInjectorCssTest::testCssPermissionGranted()
- AssetInjectorCssTest::testCssInjector in tests/
src/ Functional/ AssetInjectorCssTest.php - Test a created css injector is added to the page and the css file exists.
- AssetInjectorCssTest::testSaveContinue in tests/
src/ Functional/ AssetInjectorCssTest.php - Tests if the save and continue button works accurately.
File
- tests/
src/ Functional/ AssetInjectorCssTest.php, line 59
Class
- AssetInjectorCssTest
- Class AssetInjectorCssTest.
Namespace
Drupal\Tests\asset_injector\FunctionalCode
public function testCssPermissionGranted() {
$account = $this
->drupalCreateUser([
'administer css assets injector',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/config/development/asset-injector/css');
$this
->assertSession()
->statusCodeEquals(200);
}