Skip to content

Commit

Permalink
Merge pull request #116 from uguurozkan/master
Browse files Browse the repository at this point in the history
Switch to HTTPS for The Central Bank of the Republic of Turkey
  • Loading branch information
florianv authored Jul 28, 2020
2 parents a7b9616 + 275d575 commit 67bc64c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Service/CentralBankOfRepublicTurkey.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class CentralBankOfRepublicTurkey extends HttpService
{
use SupportsHistoricalQueries;

const BASE_URL = 'http://www.tcmb.gov.tr/kurlar/';
const BASE_URL = 'https://www.tcmb.gov.tr/kurlar/';

const FILE_EXTENSION = '.xml';

Expand Down
8 changes: 4 additions & 4 deletions tests/Tests/Service/CentralBankOfRepublicTurkeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class CentralBankOfRepublicTurkeyTest extends ServiceTestCase
*/
public static function setUpBeforeClass()
{
self::$url = 'http://www.tcmb.gov.tr/kurlar/today.xml';
self::$historicalUrl = 'http://www.tcmb.gov.tr/kurlar/201304/23042013.xml';
self::$url = 'https://www.tcmb.gov.tr/kurlar/today.xml';
self::$historicalUrl = 'https://www.tcmb.gov.tr/kurlar/201304/23042013.xml';
self::$content = file_get_contents(__DIR__.'/../../Fixtures/Service/CentralBankOfRepublicTurkey/cbrt_today.xml');
self::$historicalContent = file_get_contents(__DIR__.'/../../Fixtures/Service/CentralBankOfRepublicTurkey/cbrt_historical.xml');
}
Expand Down Expand Up @@ -97,7 +97,7 @@ public function it_does_not_support_all_queries()
*/
public function it_throws_an_exception_when_the_pair_is_not_supported()
{
$url = 'http://www.tcmb.gov.tr/kurlar/today.xml';
$url = 'https://www.tcmb.gov.tr/kurlar/today.xml';
$content = file_get_contents(__DIR__.'/../../Fixtures/Service/CentralBankOfRepublicTurkey/cbrt_today.xml');

$service = new CentralBankOfRepublicTurkey($this->getHttpAdapterMock($url, $content));
Expand All @@ -109,7 +109,7 @@ public function it_throws_an_exception_when_the_pair_is_not_supported()
*/
public function it_fetches_a_rate()
{
$url = 'http://www.tcmb.gov.tr/kurlar/today.xml';
$url = 'https://www.tcmb.gov.tr/kurlar/today.xml';
$content = file_get_contents(__DIR__.'/../../Fixtures/Service/CentralBankOfRepublicTurkey/cbrt_today.xml');

$pair = CurrencyPair::createFromString('EUR/TRY');
Expand Down

0 comments on commit 67bc64c

Please sign in to comment.