You are here

public function BasicBlogTest::testBlogBlock in Blog 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Functional/BasicBlogTest.php \Drupal\Tests\blog\Functional\BasicBlogTest::testBlogBlock()

View blog block.

File

tests/src/Functional/BasicBlogTest.php, line 66

Class

BasicBlogTest
Test blog functionality.

Namespace

Drupal\Tests\blog\Functional

Code

public function testBlogBlock() {

  // Place the recent blog posts block.
  $blog_block = $this
    ->drupalPlaceBlock('blog_blockblock-views-block-blog-blog-block');

  // Verify the blog block was displayed.
  $this
    ->drupalGet('<front>');
  $this
    ->assertBlockAppears($blog_block);
}