Chris@0: drupalCreateUser(['administer blocks']); Chris@0: $this->drupalLogin($admin_user); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Tests that the "Syndicate" block is shown when enabled. Chris@0: */ Chris@0: public function testSyndicateBlock() { Chris@0: // Place the "Syndicate" block and confirm that it is rendered. Chris@0: $this->drupalPlaceBlock('node_syndicate_block', ['id' => 'test_syndicate_block']); Chris@0: $this->drupalGet(''); Chris@0: $this->assertFieldByXPath('//div[@id="block-test-syndicate-block"]/*', NULL, 'Syndicate block found.'); Chris@0: } Chris@0: Chris@0: }