Skip to content

Commit

Permalink
ci: update test to handle new srd file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers committed Aug 14, 2024
1 parent d2878ab commit 8b155e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/app/Services/SrdServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class SrdServiceTest extends BaseFunctionalTestCase
{
private const SRD_CURRENT_FILE = 'current-srd.xls';
private const SRD_CURRENT_FILE = 'current-srd.xlsx';
private const SRD_VERSION_CACHE_KEY = 'SRD_VERSION';

private SrdService $service;
Expand Down Expand Up @@ -82,7 +82,7 @@ private function mockSrdFilesystem(string $responseData): void
$mockFileSystem->shouldReceive('put')->with(self::SRD_CURRENT_FILE, $responseData)->once();

Storage::shouldReceive('disk')->with('imports')->andReturn($mockFileSystem);
Artisan::shouldReceive('call')->with('srd:import current-srd.xls')->once();
Artisan::shouldReceive('call')->with('srd:import current-srd.xlsx')->once();
}

private function mockCacheSrdVersionWrite(): void
Expand Down

0 comments on commit 8b155e5

Please sign in to comment.