public function Example1Test::testNoExamplesInProductionMode in Decoupled Blocks: Vue.js 8
Test that example blocks do not appear in Production.
File
- tests/
src/ Functional/ Example1Test.php, line 27
Class
- Example1Test
- Test the vue_example_1 component.
Namespace
Drupal\Tests\pdb_vue\FunctionalCode
public function testNoExamplesInProductionMode() {
$assert = $this
->assertSession();
// Create administrative user.
$this
->drupalLogin($this
->drupalCreateUser([
'access administration pages',
'administer blocks',
]));
$this
->drupalGet('admin/structure/block/library/stark');
$assert
->responseContains('Place block');
// Assert that no Vue Example blocks are available in Development.
$assert
->responseNotContains('Vue');
}