Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
daf40027
Commit
daf40027
authored
Feb 16, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests
parent
7cb02d91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
library/Solarium/Query/Select.php
library/Solarium/Query/Select.php
+4
-4
tests/Solarium/Query/Select/FacetTest.php
tests/Solarium/Query/Select/FacetTest.php
+1
-1
No files found.
library/Solarium/Query/Select.php
View file @
daf40027
...
...
@@ -542,8 +542,8 @@ class Solarium_Query_Select extends Solarium_Query
*/
public
function
getFacet
(
$key
)
{
if
(
isset
(
$this
->
_facet
[
$key
]))
{
return
$this
->
_facet
[
$key
];
if
(
isset
(
$this
->
_facet
s
[
$key
]))
{
return
$this
->
_facet
s
[
$key
];
}
else
{
return
null
;
}
...
...
@@ -567,8 +567,8 @@ class Solarium_Query_Select extends Solarium_Query
*/
public
function
removeFacet
(
$key
)
{
if
(
isset
(
$this
->
_facet
[
$key
]))
{
unset
(
$this
->
_facet
[
$key
]);
if
(
isset
(
$this
->
_facet
s
[
$key
]))
{
unset
(
$this
->
_facet
s
[
$key
]);
}
return
$this
;
...
...
tests/Solarium/Query/Select/FacetTest.php
View file @
daf40027
...
...
@@ -80,7 +80,7 @@ class Solarium_Query_Select_FacetTest extends PHPUnit_Framework_TestCase
public
function
testConstructorWithConfig
()
{
$this
->
_facet
=
new
TestFacet
(
array
(
'exclude
s
'
=>
array
(
'e1'
,
'e2'
)));
$this
->
_facet
=
new
TestFacet
(
array
(
'exclude'
=>
array
(
'e1'
,
'e2'
)));
$this
->
assertEquals
(
array
(
'e1'
,
'e2'
),
$this
->
_facet
->
getExcludes
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment