Skip to content

Commit 0dd834f

Browse files
author
Justas Malinauskas
committed
Assert actual data values in UnitTests
1 parent 9e49fa8 commit 0dd834f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/Query/MatchQueryTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ public function testItBuildTheQueryWithAnAnalyzer(): void
4242
public function testItBuildTheQueryWithBoolean(): void
4343
{
4444
$query = new MatchQuery('is_closed', true);
45-
46-
$this->assertEquals([
45+
$this->assertSame([
4746
'match' => [
4847
'is_closed' => [
49-
'query' => 'a brown fox'
48+
'query' => true
5049
],
5150
],
5251
], $query->build());
@@ -57,7 +56,7 @@ public function testItBuildTheQueryWithIntefer(): void
5756
{
5857
$query = new MatchQuery('count', 1);
5958

60-
$this->assertEquals([
59+
$this->assertSame([
6160
'match' => [
6261
'count' => [
6362
'query' => 1

0 commit comments

Comments
 (0)