public function NodeSyndicateBlockTest::testSyndicateBlock

Tests that the "Syndicate" block is shown when enabled.

File

drupal/core/modules/node/lib/Drupal/node/Tests/NodeSyndicateBlockTest.php, line 41
Definition of Drupal\node\Tests\NodeSyndicateBlockTest.

Class

NodeSyndicateBlockTest
Tests the availability of the syndicate block.

Namespace

Drupal\node\Tests

Code

public function testSyndicateBlock() {

  // Place the "Syndicate" block and confirm that it is rendered.
  $this
    ->drupalPlaceBlock('node_syndicate_block', array(
    'machine_name' => 'test_syndicate_block',
  ));
  $this
    ->drupalGet('');
  $this
    ->assertFieldByXPath('//div[@id="block-test-syndicate-block"]/*', NULL, 'Syndicate block found.');
}