You are here

public function DropdownWithIncludeTest::testBreadcrumbBlockUnstyled in Block Style Plugins 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/DropdownWithIncludeTest.php \Drupal\Tests\block_style_plugins\Functional\DropdownWithIncludeTest::testBreadcrumbBlockUnstyled()

Test that the "Breadcrumb" block does not have style options.

File

tests/src/Functional/DropdownWithIncludeTest.php, line 61

Class

DropdownWithIncludeTest
Tests the DropdownWithInclude plugin.

Namespace

Drupal\Tests\block_style_plugins\Functional

Code

public function testBreadcrumbBlockUnstyled() {
  $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('Choose a style from the dropdown');
  $assert
    ->fieldNotExists('third_party_settings[block_style_plugins][dropdown_with_include][dropdown_class]');
}