3 namespace Drupal\Tests\node\Functional;
6 * Tests if the syndicate block is available.
10 class NodeSyndicateBlockTest extends NodeTestBase {
17 public static $modules = ['block'];
19 protected function setUp() {
22 // Create a user and log in.
23 $admin_user = $this->drupalCreateUser(['administer blocks']);
24 $this->drupalLogin($admin_user);
28 * Tests that the "Syndicate" block is shown when enabled.
30 public function testSyndicateBlock() {
31 // Place the "Syndicate" block and confirm that it is rendered.
32 $this->drupalPlaceBlock('node_syndicate_block', ['id' => 'test_syndicate_block']);
34 $this->assertFieldByXPath('//div[@id="block-test-syndicate-block"]/*', NULL, 'Syndicate block found.');