Loading core/modules/block/tests/src/Functional/BlockTest.php +2 −2 Changes for core/modules/block/tests/src/Functional/BlockTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ public function testBlock() { $this->assertNoText(t($block['settings[label]'])); // Check for <div id="block-my-block-instance-name"> if the machine name // is my_block_instance_name. $xpath = $this->buildXPathQuery('//div[@id=:id]/*', [':id' => 'block-' . str_replace('_', '-', strtolower($block['id']))]); $xpath = $this->assertSession()->buildXPathQuery('//div[@id=:id]/*', [':id' => 'block-' . str_replace('_', '-', strtolower($block['id']))]); $this->assertNoFieldByXPath($xpath, FALSE, 'Block found in no regions.'); // Test deleting the block from the edit form. Loading Loading @@ -349,7 +349,7 @@ public function moveBlockToRegion(array $block, $region) { $this->assertText(t($block['settings[label]']), 'Block successfully being displayed on the page.'); // Confirm that the custom block was found at the proper region. $xpath = $this->buildXPathQuery('//div[@class=:region-class]//div[@id=:block-id]/*', [ $xpath = $this->assertSession()->buildXPathQuery('//div[@class=:region-class]//div[@id=:block-id]/*', [ ':region-class' => 'region region-' . Html::getClass($region), ':block-id' => 'block-' . str_replace('_', '-', strtolower($block['id'])), ]); Loading core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php +1 −1 Changes for core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -390,7 +390,7 @@ protected function createEntityReferenceField($target_type, $bundles = []) { * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php +1 −1 Changes for core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ public function testFieldAdminHandler() { * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php +1 −1 Changes for core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ public function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $tex * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading core/modules/forum/tests/src/Functional/ForumTest.php +1 −1 Changes for core/modules/forum/tests/src/Functional/ForumTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ public function testForum() { $forum_arg = [':forum' => 'forum-list-' . $this->forum['tid']]; // Topics cell contains number of topics and number of unread topics. $xpath = $this->buildXPathQuery('//tr[@id=:forum]//td[@class="forum__topics"]', $forum_arg); $xpath = $this->assertSession()->buildXPathQuery('//tr[@id=:forum]//td[@class="forum__topics"]', $forum_arg); $topics = $this->xpath($xpath); $topics = trim($topics[0]->getText()); // The extracted text contains the number of topics (6) and new posts Loading Loading
core/modules/block/tests/src/Functional/BlockTest.php +2 −2 Changes for core/modules/block/tests/src/Functional/BlockTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ public function testBlock() { $this->assertNoText(t($block['settings[label]'])); // Check for <div id="block-my-block-instance-name"> if the machine name // is my_block_instance_name. $xpath = $this->buildXPathQuery('//div[@id=:id]/*', [':id' => 'block-' . str_replace('_', '-', strtolower($block['id']))]); $xpath = $this->assertSession()->buildXPathQuery('//div[@id=:id]/*', [':id' => 'block-' . str_replace('_', '-', strtolower($block['id']))]); $this->assertNoFieldByXPath($xpath, FALSE, 'Block found in no regions.'); // Test deleting the block from the edit form. Loading Loading @@ -349,7 +349,7 @@ public function moveBlockToRegion(array $block, $region) { $this->assertText(t($block['settings[label]']), 'Block successfully being displayed on the page.'); // Confirm that the custom block was found at the proper region. $xpath = $this->buildXPathQuery('//div[@class=:region-class]//div[@id=:block-id]/*', [ $xpath = $this->assertSession()->buildXPathQuery('//div[@class=:region-class]//div[@id=:block-id]/*', [ ':region-class' => 'region region-' . Html::getClass($region), ':block-id' => 'block-' . str_replace('_', '-', strtolower($block['id'])), ]); Loading
core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php +1 −1 Changes for core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -390,7 +390,7 @@ protected function createEntityReferenceField($target_type, $bundles = []) { * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading
core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php +1 −1 Changes for core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ public function testFieldAdminHandler() { * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading
core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php +1 −1 Changes for core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ public function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $tex * An array of expected options. */ protected function assertFieldSelectOptions($name, array $expected_options) { $xpath = $this->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $xpath = $this->assertSession()->buildXPathQuery('//select[@name=:name]', [':name' => $name]); $fields = $this->xpath($xpath); if ($fields) { $field = $fields[0]; Loading
core/modules/forum/tests/src/Functional/ForumTest.php +1 −1 Changes for core/modules/forum/tests/src/Functional/ForumTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ public function testForum() { $forum_arg = [':forum' => 'forum-list-' . $this->forum['tid']]; // Topics cell contains number of topics and number of unread topics. $xpath = $this->buildXPathQuery('//tr[@id=:forum]//td[@class="forum__topics"]', $forum_arg); $xpath = $this->assertSession()->buildXPathQuery('//tr[@id=:forum]//td[@class="forum__topics"]', $forum_arg); $topics = $this->xpath($xpath); $topics = trim($topics[0]->getText()); // The extracted text contains the number of topics (6) and new posts Loading