Skip to content

Commit 8e1ee6d

Browse files
committed
[Agent][Mapbox] Remove mapbox- prefix from fixture files
Rename test fixture files to remove the mapbox- prefix for consistency with other tool bridges.
1 parent 378306f commit 8e1ee6d

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

src/agent/src/Bridge/Mapbox/Tests/MapboxTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class MapboxTest extends TestCase
2020
{
2121
public function testGeocodeWithSingleResult()
2222
{
23-
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/mapbox-geocode-single.json');
23+
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/geocode-single.json');
2424
$httpClient = new MockHttpClient($result);
2525

2626
$mapbox = new Mapbox($httpClient, 'test_token');
@@ -46,7 +46,7 @@ public function testGeocodeWithSingleResult()
4646

4747
public function testGeocodeWithMultipleResults()
4848
{
49-
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/mapbox-geocode-multiple.json');
49+
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/geocode-multiple.json');
5050
$httpClient = new MockHttpClient($result);
5151

5252
$mapbox = new Mapbox($httpClient, 'test_token');
@@ -81,7 +81,7 @@ public function testGeocodeWithMultipleResults()
8181

8282
public function testGeocodeWithNoResults()
8383
{
84-
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/mapbox-geocode-empty.json');
84+
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/geocode-empty.json');
8585
$httpClient = new MockHttpClient($result);
8686

8787
$mapbox = new Mapbox($httpClient, 'test_token');
@@ -97,7 +97,7 @@ public function testGeocodeWithNoResults()
9797

9898
public function testReverseGeocodeWithValidCoordinates()
9999
{
100-
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/mapbox-reverse-geocode.json');
100+
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/reverse-geocode.json');
101101
$httpClient = new MockHttpClient($result);
102102

103103
$mapbox = new Mapbox($httpClient, 'test_token');
@@ -139,7 +139,7 @@ public function testReverseGeocodeWithValidCoordinates()
139139

140140
public function testReverseGeocodeWithNoResults()
141141
{
142-
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/mapbox-reverse-geocode-empty.json');
142+
$result = JsonMockResponse::fromFile(__DIR__.'/fixtures/reverse-geocode-empty.json');
143143
$httpClient = new MockHttpClient($result);
144144

145145
$mapbox = new Mapbox($httpClient, 'test_token');
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)