summaryrefslogtreecommitdiffstats
path: root/tests/src/Unit/Plugin
diff options
context:
space:
mode:
authorborisson_2015-12-20 10:53:00 (GMT)
committerJoris Vercammen2015-12-20 10:53:00 (GMT)
commit1ffa3d3bf110ef8a48969f9d8c9d4a8c099df993 (patch)
treeb4b303f5256e070202ba52132af53c24f77ed8b2 /tests/src/Unit/Plugin
parent6f1aa3aeec898795707def9fdb7782da00769dd7 (diff)
Issue #2624410 by borisson_: Create settings for the url processor to change the facet's alias
Diffstat (limited to 'tests/src/Unit/Plugin')
-rw-r--r--tests/src/Unit/Plugin/processor/QueryStringUrlProcessorTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/Unit/Plugin/processor/QueryStringUrlProcessorTest.php b/tests/src/Unit/Plugin/processor/QueryStringUrlProcessorTest.php
index d23054b..1b4c58f 100644
--- a/tests/src/Unit/Plugin/processor/QueryStringUrlProcessorTest.php
+++ b/tests/src/Unit/Plugin/processor/QueryStringUrlProcessorTest.php
@@ -60,6 +60,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
public function testSetSingleActiveItem() {
$facet = new Facet([], 'facet');
$facet->setResults($this->originalResults);
+ $facet->setUrlAlias('test');
$facet->setFieldIdentifier('test');
$request = new Request();
@@ -77,6 +78,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
public function testSetMultipleActiveItems() {
$facet = new Facet([], 'facet');
$facet->setResults($this->originalResults);
+ $facet->setUrlAlias('test');
$facet->setFieldIdentifier('test');
$request = new Request();
@@ -93,6 +95,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
*/
public function testEmptyBuild() {
$facet = new Facet([], 'facet');
+ $facet->setUrlAlias('test');
$facet->setFacetSourceId('facet_source__dummy');
$request = new Request();
@@ -109,6 +112,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
public function testBuild() {
$facet = new Facet([], 'facet');
$facet->setFieldIdentifier('test');
+ $facet->setUrlAlias('test');
$facet->setFacetSourceId('facet_source__dummy');
$request = new Request();
@@ -130,6 +134,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
public function testBuildWithActiveItem() {
$facet = new Facet([], 'facet');
$facet->setFieldIdentifier('test');
+ $facet->setUrlAlias('test');
$facet->setFacetSourceId('facet_source__dummy');
$original_results = $this->originalResults;
@@ -178,6 +183,7 @@ class QueryStringUrlProcessorTest extends UnitTestCase {
$facet = new Facet([], 'facet');
$facet->setFieldIdentifier('test');
$facet->setFacetSourceId('facet_source__dummy');
+ $facet->setUrlAlias('test');
$request = new Request();
$request->query->set('ab', []);