public function BasicBlogTest::testBlogBlock in Blog 3.x
Same name and namespace in other branches
- 8.2 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\FunctionalCode
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);
}