function BlockContentThemeSuggestionsTest::testBlockContentThemeSuggestionsContent

Test suggestions for content blocks.

File

core/modules/block_content/tests/src/Functional/BlockContentThemeSuggestionsTest.php, line 56

Class

BlockContentThemeSuggestionsTest
Tests block content theme suggestions.

Namespace

Drupal\Tests\block_content\Functional

Code

public function testBlockContentThemeSuggestionsContent() : void {
    $this->drupalLogin($this->adminUser);
    $this->drupalPlaceBlock('block_content:' . $this->uuid);
    $this->drupalGet('');
    $this->assertSession()
        ->statusCodeEquals(200);
    $this->assertSession()
        ->pageTextContains('Example block!');
    $this->assertSession()
        ->pageTextContainsOnce('I am a block content template for a specific bundle and view mode!');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.