Skip to content
Snippets Groups Projects
Commit 13d088e5 authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Changed getArray method in top hits aggregation

parent b81acd4f
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,10 @@ class TopHitsAggregationTest extends \PHPUnit_Framework_TestCase
public function testToArray()
{
$sorts = new Sorts();
$aggregation = new TopHitsAggregation('test', 1, 1, $sorts);
$aggregation = new TopHitsAggregation('test', 0, 1);
$expectedAgg = new \stdClass();
$expectedAgg->size = 1;
$expectedAgg->size = 0;
$expectedAgg->from = 1;
$expectedAgg->sort = $sorts->toArray();
$expected = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment