public function BlocacheBrowserTest::testBlocacheSettingsAccess in Blocache (Block Cache Control) 8
Tests access to metadata configuration fields.
File
- tests/
src/ Functional/ BlocacheBrowserTest.php, line 17
Class
- BlocacheBrowserTest
- Blocache browser's tests.
Namespace
Drupal\Tests\blocache\FunctionalCode
public function testBlocacheSettingsAccess() {
// Access the add block page for the default theme.
$block_name = 'system_powered_by_block';
$default_theme = $this
->config('system.theme')
->get('default');
$this
->drupalGet('admin/structure/block/add/' . $block_name . '/' . $default_theme);
$this
->assertField('edit-blocache-overridden');
}