Commit daf40027 authored by Bas de Nooijer's avatar Bas de Nooijer

fixed tests

parent 7cb02d91
...@@ -542,8 +542,8 @@ class Solarium_Query_Select extends Solarium_Query ...@@ -542,8 +542,8 @@ class Solarium_Query_Select extends Solarium_Query
*/ */
public function getFacet($key) public function getFacet($key)
{ {
if (isset($this->_facet[$key])) { if (isset($this->_facets[$key])) {
return $this->_facet[$key]; return $this->_facets[$key];
} else { } else {
return null; return null;
} }
...@@ -567,8 +567,8 @@ class Solarium_Query_Select extends Solarium_Query ...@@ -567,8 +567,8 @@ class Solarium_Query_Select extends Solarium_Query
*/ */
public function removeFacet($key) public function removeFacet($key)
{ {
if (isset($this->_facet[$key])) { if (isset($this->_facets[$key])) {
unset($this->_facet[$key]); unset($this->_facets[$key]);
} }
return $this; return $this;
......
...@@ -80,7 +80,7 @@ class Solarium_Query_Select_FacetTest extends PHPUnit_Framework_TestCase ...@@ -80,7 +80,7 @@ class Solarium_Query_Select_FacetTest extends PHPUnit_Framework_TestCase
public function testConstructorWithConfig() public function testConstructorWithConfig()
{ {
$this->_facet = new TestFacet(array('excludes' => array('e1','e2'))); $this->_facet = new TestFacet(array('exclude' => array('e1','e2')));
$this->assertEquals(array('e1','e2'), $this->_facet->getExcludes()); $this->assertEquals(array('e1','e2'), $this->_facet->getExcludes());
} }
} }
......
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