Commit 33b7f63f authored by Dorian Villet's avatar Dorian Villet

Fixing last part of unwanted changes to tests data.

parent 1dd0597b
...@@ -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,
) )
) )
......
...@@ -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',
......
...@@ -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());
} }
......
...@@ -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);
......
...@@ -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())
......
...@@ -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);
......
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