Commit 4b8af1c8 authored by Bas de Nooijer's avatar Bas de Nooijer

Merge branch 'fix-pivot-extra-params' of github.com:FredM/solarium into develop

Conflicts:
	tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/FacetSetTest.php
parent f415d799
...@@ -188,15 +188,15 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase ...@@ -188,15 +188,15 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
public function testBuildWithPivotFacet() public function testBuildWithPivotFacet()
{ {
$this->component->addFacet( $facet = new FacetPivot(
new FacetPivot( array(
array( 'key' => 'f1',
'key' => 'f1', 'fields' => 'cat,inStock',
'fields' => 'cat,inStock', 'mincount' => 123
'mincount' => 123,
)
) )
); );
$facet->addExclude('owner');
$this->component->addFacet($facet);
$request = $this->builder->buildComponent($this->component, $this->request); $request = $this->builder->buildComponent($this->component, $this->request);
...@@ -206,7 +206,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase ...@@ -206,7 +206,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
); );
$this->assertEquals( $this->assertEquals(
'?facet=true&facet.pivot=cat,inStock&facet.pivot.mincount=123', '?facet=true&facet.pivot={!key=f1 ex=owner}cat,inStock&facet.pivot.mincount=123',
urldecode($request->getUri()) urldecode($request->getUri())
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment