You are here

public function FormFieldsCreatedWithYamlTest::testBreadcrumbBlockExcluded in Block Style Plugins 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/FormFieldsCreatedWithYamlTest.php \Drupal\Tests\block_style_plugins\Functional\FormFieldsCreatedWithYamlTest::testBreadcrumbBlockExcluded()

Test that the styles do not appear on the "Breadcrumb" block instance.

File

tests/src/Functional/FormFieldsCreatedWithYaml.php, line 56

Class

FormFieldsCreatedWithYamlTest
Test a Yaml only configuration.

Namespace

Drupal\Tests\block_style_plugins\Functional

Code

public function testBreadcrumbBlockExcluded() {
  $assert = $this
    ->assertSession();

  // Go to the block instance configuration page.
  $this
    ->drupalGet('admin/structure/block/manage/breadcrumbtest');
  $assert
    ->pageTextContains('Block Styles');

  // Check that the style options are NOT available.
  $assert
    ->pageTextNotContains('Styles Created by Yaml');
  $assert
    ->fieldNotExists('third_party_settings[block_style_plugins][form_fields_created_with_yaml][test_field]');
}