Loading tests/src/Functional/ViewsExposedGroupsExposedOperatorTest.php +4 −4 Changes for tests/src/Functional/ViewsExposedGroupsExposedOperatorTest.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class ViewsExposedGroupsExposedOperatorTest extends ViewsExposedGroupsTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->defaultView->getDisplay('default') Loading Loading @@ -55,10 +55,10 @@ class ViewsExposedGroupsExposedOperatorTest extends ViewsExposedGroupsTestBase { $this->drupalGet($view_path); // Asserts that the exposed filter with an exposed operator exists. $this->assertFieldByName('title_op'); $this->assertFieldByName('title'); $this->assertSession()->fieldExists('title_op'); $this->assertSession()->fieldExists('title'); $fieldset_legend = $this->xpath('//fieldset/legend/span[text()="Title"]'); $this->assertEqual(1, count($fieldset_legend), 'Found the exposed filter label as the fieldset legend.'); $this->assertEquals(1, count($fieldset_legend), 'Found the exposed filter label as the fieldset legend.'); } } Loading
tests/src/Functional/ViewsExposedGroupsExposedOperatorTest.php +4 −4 Changes for tests/src/Functional/ViewsExposedGroupsExposedOperatorTest.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ class ViewsExposedGroupsExposedOperatorTest extends ViewsExposedGroupsTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->defaultView->getDisplay('default') Loading Loading @@ -55,10 +55,10 @@ class ViewsExposedGroupsExposedOperatorTest extends ViewsExposedGroupsTestBase { $this->drupalGet($view_path); // Asserts that the exposed filter with an exposed operator exists. $this->assertFieldByName('title_op'); $this->assertFieldByName('title'); $this->assertSession()->fieldExists('title_op'); $this->assertSession()->fieldExists('title'); $fieldset_legend = $this->xpath('//fieldset/legend/span[text()="Title"]'); $this->assertEqual(1, count($fieldset_legend), 'Found the exposed filter label as the fieldset legend.'); $this->assertEquals(1, count($fieldset_legend), 'Found the exposed filter label as the fieldset legend.'); } }