summaryrefslogtreecommitdiffstats
path: root/src/Tests/FacetSourceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tests/FacetSourceTest.php')
-rw-r--r--src/Tests/FacetSourceTest.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/Tests/FacetSourceTest.php b/src/Tests/FacetSourceTest.php
index 2fd2335..51fcfc6 100644
--- a/src/Tests/FacetSourceTest.php
+++ b/src/Tests/FacetSourceTest.php
@@ -22,18 +22,25 @@ class FacetSourceTest extends WebTestBase {
];
/**
- * Tests the facet source editing.
+ * {@inheritdoc}
*/
- public function testEditFilterKey() {
+ public function setUp() {
+ parent::setUp();
+
// Make sure we're logged in with a user that has sufficient permissions.
$this->drupalLogin($this->adminUser);
- // Test the overview.
+ // Go to the overview and click the first configure link.
$this->drupalGet('admin/config/search/facets');
$this->assertLink($this->t('Configure'));
$this->clickLink($this->t('Configure'));
+ }
- // Test the edit page.
+ /**
+ * Tests the facet source editing.
+ */
+ public function testEditFilterKey() {
+ // Change the filter key.
$edit = array(
'filter_key' => 'fq',
);
@@ -52,15 +59,7 @@ class FacetSourceTest extends WebTestBase {
* Tests editing the url processor.
*/
public function testEditUrlProcessor() {
- // Make sure we're logged in with a user that has sufficient permissions.
- $this->drupalLogin($this->adminUser);
-
- // Test the overview.
- $this->drupalGet('admin/config/search/facets');
- $this->assertLink($this->t('Configure'));
- $this->clickLink($this->t('Configure'));
-
- // Test the edit page.
+ // Change the url processor.
$edit = array(
'url_processor' => 'dummy_query',
);