diff --git a/src/DataSource/ZipUrls.php b/src/DataSource/ZipUrls.php index 04f4c5f4c8..a3cb81253c 100644 --- a/src/DataSource/ZipUrls.php +++ b/src/DataSource/ZipUrls.php @@ -6,7 +6,7 @@ final readonly class ZipUrls { - public const string KEN_ALL = 'https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip'; - public const string KEN_ALL_ROME = 'https://www.post.japanpost.jp/zipcode/dl/roman/KEN_ALL_ROME.zip'; - public const string JIGYOSYO = 'https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip'; + public const string KEN_ALL = 'https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip'; + public const string KEN_ALL_ROME = 'https://www.post.japanpost.jp/service/search/zipcode/download/roman/KEN_ALL_ROME.zip'; + public const string JIGYOSYO = 'https://www.post.japanpost.jp/service/search/zipcode/download/office/zip/jigyosyo.zip'; } diff --git a/tests/Command/BuildCommandTest.php b/tests/Command/BuildCommandTest.php index 4d57e02bd4..90ebb3b0bf 100644 --- a/tests/Command/BuildCommandTest.php +++ b/tests/Command/BuildCommandTest.php @@ -22,9 +22,9 @@ class BuildCommandTest extends TestCase public function testExecute(): void { $csvProvider = $this->prophesize(CsvProviderInterface::class); - $csvProvider->fromZipUrl('https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip')->willReturn(Reader::createFromString('ken,all,csv')); - $csvProvider->fromZipUrl('https://www.post.japanpost.jp/zipcode/dl/roman/KEN_ALL_ROME.zip')->willReturn(Reader::createFromString('kenall,rome,csv')); - $csvProvider->fromZipUrl('https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip')->willReturn(Reader::createFromString('jigyo,syo,csv')); + $csvProvider->fromZipUrl('https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip')->willReturn(Reader::createFromString('ken,all,csv')); + $csvProvider->fromZipUrl('https://www.post.japanpost.jp/service/search/zipcode/download/roman/KEN_ALL_ROME.zip')->willReturn(Reader::createFromString('kenall,rome,csv')); + $csvProvider->fromZipUrl('https://www.post.japanpost.jp/service/search/zipcode/download/office/zip/jigyosyo.zip')->willReturn(Reader::createFromString('jigyo,syo,csv')); $kenAllCsvParser = $this->prophesize(CsvParserInterface::class); $kenAllCsvParser->parse(['ken', 'all', 'csv'])->willReturn(new ParsedCsvRow(