MINI
C:
/
siak73
/
app
/
Siak73
/
application
/
third_party
/
vendor
/
basemkhirat
/
elasticsearch
/
tests
/
Upload File:
files >> C:/siak73/app/Siak73/application/third_party/vendor/basemkhirat/elasticsearch/tests/SkipTest.php
<?php namespace Basemkhirat\Elasticsearch\Tests; use Basemkhirat\Elasticsearch\Tests\Traits\ESQueryTrait; class SkipTest extends \PHPUnit_Framework_TestCase { use ESQueryTrait; /** * Test the skip() method. * @return void */ public function testSkipMethod() { $this->assertEquals($this->getExpected(10), $this->getActual(10)); } /** * Get The expected results. * @return array */ protected function getExpected($from) { $query = $this->getQueryArray(); $query["from"] = $from; return $query; } /** * Get The actual results. * @return mixed */ protected function getActual($from) { return $this->getQueryObject()->skip($from)->query(); } }
Copyright ©2021 || Defacer Indonesia