Skip to content

Commit 293e8ce

Browse files
committed
Fix tests
1 parent ceb5ac6 commit 293e8ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Query/GeoBoundingBoxQueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ class GeoBoundingBoxQueryTest extends TestCase
1212
{
1313
public function testBuildFailsOnAllNull(): void
1414
{
15-
$this->expectErrorMessage('GeoBoundingBoxQuery needs at least 2 sides set');
15+
$this->expectExceptionMessage('GeoBoundingBoxQuery needs at least 2 sides set');
1616
(new GeoBoundingBoxQuery('test'))->build();
1717
}
1818

1919
public function testBuildFailsOnOneFilter(): void
2020
{
21-
$this->expectErrorMessage('GeoBoundingBoxQuery needs at least 2 sides set');
21+
$this->expectExceptionMessage('GeoBoundingBoxQuery needs at least 2 sides set');
2222
(new GeoBoundingBoxQuery(field: 'test', topLeft: new GpsPointEntity(1.1, 2.1)))->build();
2323
}
2424

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testItSetThePitAsString(): void
7272

7373
$query = $queryBuilder->build();
7474

75-
$this->assertEquals(['id' => 'pit-as-string'], $query['pit']);
75+
$this->assertEquals(['id' => 'pit-as-string'], $query['body']['pit']);
7676
}
7777

7878
public function testItSetThePitAsArray(): void
@@ -83,7 +83,7 @@ public function testItSetThePitAsArray(): void
8383

8484
$query = $queryBuilder->build();
8585

86-
$this->assertEquals(['id' => 'pit-as-array', 'keep_alive' => '1m'], $query['pit']);
86+
$this->assertEquals(['id' => 'pit-as-array', 'keep_alive' => '1m'], $query['body']['pit']);
8787
}
8888

8989
public function testItAllowToSort(): void

0 commit comments

Comments
 (0)