Skip to content

Commit f58ab38

Browse files
committed
more tests
1 parent fc430ae commit f58ab38

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Unit/IndexTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
namespace Limenet\LaravelElasticaBridge\Tests\Unit;
44

55
use Elastica\Index;
6+
use Elastica\Query;
7+
use Elastica\Response;
8+
use Elastica\ResultSet;
69
use Limenet\LaravelElasticaBridge\Exception\Index\BlueGreenIndicesIncorrectlySetupException;
710
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\CustomerIndex;
811
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\ProductIndex;
@@ -82,4 +85,9 @@ public function blue_green()
8285
$this->customerIndex->getBlueGreenActiveElasticaIndex();
8386
$this->customerIndex->getBlueGreenInactiveElasticaIndex();
8487
}
88+
/** @test */
89+
public function results_base_case()
90+
{
91+
$this->assertSame([], $this->customerIndex->documentResultToElements(new ResultSet(new Response('{}'), new Query(), [])));
92+
}
8593
}

0 commit comments

Comments
 (0)