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
33b7f63f
Commit
33b7f63f
authored
Sep 12, 2013
by
Dorian Villet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing last part of unwanted changes to tests data.
parent
1dd0597b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/FacetSetTest.php
...ueryType/Select/RequestBuilder/Component/FacetSetTest.php
+1
-1
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/HighlightingTest.php
...Type/Select/RequestBuilder/Component/HighlightingTest.php
+2
-2
tests/Solarium/Tests/QueryType/Terms/QueryTest.php
tests/Solarium/Tests/QueryType/Terms/QueryTest.php
+2
-2
tests/Solarium/Tests/QueryType/Terms/RequestBuilderTest.php
tests/Solarium/Tests/QueryType/Terms/RequestBuilderTest.php
+2
-2
tests/Solarium/Tests/QueryType/Terms/ResponseParserTest.php
tests/Solarium/Tests/QueryType/Terms/ResponseParserTest.php
+2
-2
tests/Solarium/Tests/QueryType/Update/ResponseParserTest.php
tests/Solarium/Tests/QueryType/Update/ResponseParserTest.php
+1
-1
No files found.
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/FacetSetTest.php
View file @
33b7f63f
...
@@ -192,7 +192,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
...
@@ -192,7 +192,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
new
FacetPivot
(
new
FacetPivot
(
array
(
array
(
'key'
=>
'f1'
,
'key'
=>
'f1'
,
'fields'
=>
'cat,
inStock'
,
'fields'
=>
'cat,inStock'
,
'mincount'
=>
123
,
'mincount'
=>
123
,
)
)
)
)
...
...
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/HighlightingTest.php
View file @
33b7f63f
...
@@ -80,7 +80,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
...
@@ -80,7 +80,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
$component
->
setTagPrefix
(
'<i>'
);
$component
->
setTagPrefix
(
'<i>'
);
$component
->
setTagPostfix
(
'</i>'
);
$component
->
setTagPostfix
(
'</i>'
);
$component
->
setMultiValuedSeparatorChar
(
'|'
);
$component
->
setMultiValuedSeparatorChar
(
'|'
);
$component
->
setBoundaryScannerChars
(
'.,
'
);
$component
->
setBoundaryScannerChars
(
'.,'
);
$component
->
setBoundaryScannerMaxScan
(
16
);
$component
->
setBoundaryScannerMaxScan
(
16
);
$component
->
setBoundaryScannerType
(
$component
::
BOUNDARYSCANNER_TYPE_WORD
);
$component
->
setBoundaryScannerType
(
$component
::
BOUNDARYSCANNER_TYPE_WORD
);
$component
->
setBoundaryScannerCountry
(
'be'
);
$component
->
setBoundaryScannerCountry
(
'be'
);
...
@@ -125,7 +125,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
...
@@ -125,7 +125,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
'f.fieldB.hl.fragmenter'
=>
'myFragmenter'
,
'f.fieldB.hl.fragmenter'
=>
'myFragmenter'
,
'f.fieldB.hl.useFastVectorHighlighter'
=>
'true'
,
'f.fieldB.hl.useFastVectorHighlighter'
=>
'true'
,
'hl.bs.maxScan'
=>
16
,
'hl.bs.maxScan'
=>
16
,
'hl.bs.chars'
=>
'.,
'
,
'hl.bs.chars'
=>
'.,'
,
'hl.bs.type'
=>
'WORD'
,
'hl.bs.type'
=>
'WORD'
,
'hl.bs.country'
=>
'be'
,
'hl.bs.country'
=>
'be'
,
'hl.bs.language'
=>
'en'
,
'hl.bs.language'
=>
'en'
,
...
...
tests/Solarium/Tests/QueryType/Terms/QueryTest.php
View file @
33b7f63f
...
@@ -63,7 +63,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
...
@@ -63,7 +63,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetFields
()
public
function
testSetAndGetFields
()
{
{
$this
->
query
->
setFields
(
'fieldA,
fieldB'
);
$this
->
query
->
setFields
(
'fieldA,fieldB'
);
$this
->
assertEquals
(
array
(
'fieldA'
,
'fieldB'
),
$this
->
query
->
getFields
());
$this
->
assertEquals
(
array
(
'fieldA'
,
'fieldB'
),
$this
->
query
->
getFields
());
}
}
...
@@ -111,7 +111,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
...
@@ -111,7 +111,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetRegexFlags
()
public
function
testSetAndGetRegexFlags
()
{
{
$this
->
query
->
setRegexFlags
(
'case_insensitive,
comments'
);
$this
->
query
->
setRegexFlags
(
'case_insensitive,comments'
);
$this
->
assertEquals
(
array
(
'case_insensitive'
,
'comments'
),
$this
->
query
->
getRegexFlags
());
$this
->
assertEquals
(
array
(
'case_insensitive'
,
'comments'
),
$this
->
query
->
getRegexFlags
());
}
}
...
...
tests/Solarium/Tests/QueryType/Terms/RequestBuilderTest.php
View file @
33b7f63f
...
@@ -55,14 +55,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
...
@@ -55,14 +55,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
public
function
testBuildParams
()
public
function
testBuildParams
()
{
{
$this
->
query
->
setFields
(
'fieldA,
fieldB'
);
$this
->
query
->
setFields
(
'fieldA,fieldB'
);
$this
->
query
->
setLowerbound
(
'd'
);
$this
->
query
->
setLowerbound
(
'd'
);
$this
->
query
->
setLowerboundInclude
(
true
);
$this
->
query
->
setLowerboundInclude
(
true
);
$this
->
query
->
setMinCount
(
3
);
$this
->
query
->
setMinCount
(
3
);
$this
->
query
->
setMaxCount
(
100
);
$this
->
query
->
setMaxCount
(
100
);
$this
->
query
->
setPrefix
(
'de'
);
$this
->
query
->
setPrefix
(
'de'
);
$this
->
query
->
setRegex
(
'det.*'
);
$this
->
query
->
setRegex
(
'det.*'
);
$this
->
query
->
setRegexFlags
(
'case_insensitive,
comments'
);
$this
->
query
->
setRegexFlags
(
'case_insensitive,comments'
);
$this
->
query
->
setLimit
(
50
);
$this
->
query
->
setLimit
(
50
);
$this
->
query
->
setUpperbound
(
'x'
);
$this
->
query
->
setUpperbound
(
'x'
);
$this
->
query
->
setUpperboundInclude
(
false
);
$this
->
query
->
setUpperboundInclude
(
false
);
...
...
tests/Solarium/Tests/QueryType/Terms/ResponseParserTest.php
View file @
33b7f63f
...
@@ -60,7 +60,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
...
@@ -60,7 +60,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
);
);
$query
=
new
Query
();
$query
=
new
Query
();
$query
->
setFields
(
'fieldA,
fieldB'
);
$query
->
setFields
(
'fieldA,fieldB'
);
$resultStub
=
$this
->
getMock
(
'Solarium\QueryType\Terms\Result'
,
array
(),
array
(),
''
,
false
);
$resultStub
=
$this
->
getMock
(
'Solarium\QueryType\Terms\Result'
,
array
(),
array
(),
''
,
false
);
$resultStub
->
expects
(
$this
->
any
())
$resultStub
->
expects
(
$this
->
any
())
...
@@ -114,7 +114,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
...
@@ -114,7 +114,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
);
);
$query
=
new
Query
();
$query
=
new
Query
();
$query
->
setFields
(
'fieldA,
fieldB'
);
$query
->
setFields
(
'fieldA,fieldB'
);
$resultStub
=
$this
->
getMock
(
'Solarium\QueryType\Terms\Result'
,
array
(),
array
(),
''
,
false
);
$resultStub
=
$this
->
getMock
(
'Solarium\QueryType\Terms\Result'
,
array
(),
array
(),
''
,
false
);
$resultStub
->
expects
(
$this
->
any
())
$resultStub
->
expects
(
$this
->
any
())
...
...
tests/Solarium/Tests/QueryType/Update/ResponseParserTest.php
View file @
33b7f63f
...
@@ -40,7 +40,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
...
@@ -40,7 +40,7 @@ class ResponseParserTest extends \PHPUnit_Framework_TestCase
{
{
public
function
testParse
()
public
function
testParse
()
{
{
$data
=
'{"responseHeader" : {"status":1,
"QTime":15}}'
;
$data
=
'{"responseHeader" : {"status":1,"QTime":15}}'
;
$response
=
new
Response
(
$data
,
array
(
'HTTP 1.1 200 OK'
));
$response
=
new
Response
(
$data
,
array
(
'HTTP 1.1 200 OK'
));
$result
=
new
Result
(
null
,
new
SelectQuery
,
$response
);
$result
=
new
Result
(
null
,
new
SelectQuery
,
$response
);
...
...
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