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
b080feed
Commit
b080feed
authored
Feb 16, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing test
parent
daf40027
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
tests/Solarium/Client/Request/SelectTest.php
tests/Solarium/Client/Request/SelectTest.php
+17
-0
No files found.
tests/Solarium/Client/Request/SelectTest.php
View file @
b080feed
...
@@ -113,4 +113,21 @@ class Solarium_Client_Request_SelectTest extends PHPUnit_Framework_TestCase
...
@@ -113,4 +113,21 @@ class Solarium_Client_Request_SelectTest extends PHPUnit_Framework_TestCase
urldecode
(
$request
->
getUrl
())
urldecode
(
$request
->
getUrl
())
);
);
}
}
public
function
testUnknownFacetType
()
{
$this
->
_query
->
addFacet
(
new
UnknownFacet
(
array
(
'key'
=>
'f1'
,
'field'
=>
'owner'
)));
$this
->
setExpectedException
(
'Solarium_Exception'
);
new
Solarium_Client_Request_Select
(
$this
->
_options
,
$this
->
_query
);
}
}
}
class
UnknownFacet
extends
Solarium_Query_Select_Facet_Field
{
public
function
getType
()
{
return
'unknown'
;
}
}
\ No newline at end of file
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