Skip to content

Commit f577e73

Browse files
committed
fix: tests paths
1 parent 9214f51 commit f577e73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Tests/Service/ApiLayer/CurrencyDataTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function it_throws_an_exception_with_error_response()
5151
{
5252
$this->expectException(Exception::class);
5353
$uri = 'https://api.apilayer.com/currency_data/live?apikey=secret&currencies=EUR';
54-
$content = file_get_contents(__DIR__.'/../../../../Fixtures/Service/CurrencyData/error.json');
54+
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/ApiLayer/CurrencyData/error.json');
5555

5656
$service = new CurrencyData($this->getHttpAdapterMock($uri, $content), null, ['api_key' => 'secret']);
5757
$service->getExchangeRate(new ExchangeRateQuery(CurrencyPair::createFromString('USD/EUR')));
@@ -65,7 +65,7 @@ public function it_fetches_a_rate()
6565
$uri = 'https://api.apilayer.com/currency_data/live?apikey=secret&currencies=EUR';
6666
$expectedDate = new \DateTime();
6767
$expectedDate->setTimestamp(1399748450);
68-
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/CurrencyData/success.json');
68+
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/ApiLayer/CurrencyData/success.json');
6969

7070
$pair = CurrencyPair::createFromString('USD/EUR');
7171
$service = new CurrencyData($this->getHttpAdapterMock($uri, $content), null, ['api_key' => 'secret']);
@@ -84,7 +84,7 @@ public function it_fetches_a_historical_rate()
8484
{
8585
$pair = CurrencyPair::createFromString('USD/AED');
8686
$uri = 'http://apilayer.net/api/historical?apikey=secret&date=2015-05-06';
87-
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/CurrencyData/historical_success.json');
87+
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/ApiLayer/CurrencyData/historical_success.json');
8888
$date = new \DateTime('2015-05-06');
8989
$expectedDate = new \DateTime();
9090
$expectedDate->setTimestamp(1430870399);

tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function it_throws_An_unsupported_currency_pair_exception(
8484

8585
public function unsupportedCurrencyPairResponsesProvider(): array
8686
{
87-
$dir = __DIR__.'/../../../Fixtures/Service/ExchangeRatesData/';
87+
$dir = __DIR__.'/../../../Fixtures/Service/ApiLayer/ExchangeRatesData/';
8888

8989
return [
9090
'invalid_base_currency' => [
@@ -186,7 +186,7 @@ public function it_fetches_a_rate()
186186
{
187187
$pair = CurrencyPair::createFromString('EUR/USD');
188188
$uri = 'https://api.apilayer.com/exchangerates_data/latest?base=EUR&api_key=x&symbols=USD';
189-
$content = file_get_contents(__DIR__.'/../../Fixtures/Service/ApiLayer/ExchangeRatesData/latest.json');
189+
$content = file_get_contents(__DIR__.'/../../../Fixtures/Service/ApiLayer/ExchangeRatesData/latest.json');
190190

191191
$service = new ExchangeRatesData(
192192
$this->getHttpAdapterMock($uri, $content),

0 commit comments

Comments
 (0)