Newer
Older
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <info@nfq.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use ONGR\ElasticsearchDSL\Query\LimitQuery;
class LimitQueryTest extends \PHPUnit_Framework_TestCase
{
/**
* Test for query toArray() method.
*/
public function testToArray()
{
$query = new LimitQuery(3);
$expectedResult = [
'limit' => ['value' => 3]
];
$this->assertEquals($expectedResult, $query->toArray());
}
}