Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ 8.1, 8.2, 8.3, 8.4 ]
php: [ 8.2, 8.3, 8.4 ]
stability: [ prefer-lowest, prefer-stable ]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
],
"homepage": "https://github.com/craigpotter",
"require": {
"php": "^8.1",
"saloonphp/saloon": "^3.0",
"php": "^8.2",
"saloonphp/saloon": "^4.0",
"saloonphp/pagination-plugin": "^2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.5",
"pestphp/pest": "^2.0",
"pestphp/pest": "^3.0",
"spatie/ray": "^1.33",
"vlucas/phpdotenv": "^5.5"
},
Expand Down
16 changes: 8 additions & 8 deletions tests/Feature/FirmResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

it('can get a check a firms fca number exists', function () {
$mockClient = new MockClient([
GetFirmDetails::class => MockResponse::fixture('firm.details'),
GetFirmDetails::class => MockResponse::fixture('firm/details'),
]);

$fca = new Fca($_ENV['AUTH_EMAIL'], $_ENV['AUTH_KEY']);
Expand All @@ -28,7 +28,7 @@

it('can get a check a firms fca number does not exists', function () {
$mockClient = new MockClient([
GetFirmDetails::class => MockResponse::fixture('firm.details.not-found'),
GetFirmDetails::class => MockResponse::fixture('firm/details-not-found'),
]);

$fca = new Fca($_ENV['AUTH_EMAIL'], $_ENV['AUTH_KEY']);
Expand All @@ -41,7 +41,7 @@

it('can get a firms details', function () {
$mockClient = new MockClient([
GetFirmDetails::class => MockResponse::fixture('firm.details'),
GetFirmDetails::class => MockResponse::fixture('firm/details'),
]);

$fca = new Fca($_ENV['AUTH_EMAIL'], $_ENV['AUTH_KEY']);
Expand All @@ -60,7 +60,7 @@

it('throws an exception when the firm is not found', function () {
$mockClient = new MockClient([
GetFirmDetails::class => MockResponse::fixture('firm.details.not-found'),
GetFirmDetails::class => MockResponse::fixture('firm/details-not-found'),
]);

$fca = new Fca($_ENV['AUTH_EMAIL'], $_ENV['AUTH_KEY']);
Expand All @@ -74,9 +74,9 @@
$mockClient = new MockClient([
GetFirmIndividuals::class => function (PendingRequest $pendingRequest) {
return match ($pendingRequest->query()->get('pgnp')) {
1 => MockResponse::fixture('firm.individuals.1'),
2 => MockResponse::fixture('firm.individuals.2'),
3 => MockResponse::fixture('firm.individuals.3'),
1 => MockResponse::fixture('firm/individuals-1'),
2 => MockResponse::fixture('firm/individuals-2'),
3 => MockResponse::fixture('firm/individuals-3'),
};
},
]);
Expand All @@ -103,7 +103,7 @@

it('can get a firm addresses', function () {
$mockClient = new MockClient([
GetFirmAddresses::class => MockResponse::fixture('firm.address'),
GetFirmAddresses::class => MockResponse::fixture('firm/address'),
]);

$fca = new Fca($_ENV['AUTH_EMAIL'], $_ENV['AUTH_KEY']);
Expand Down
Loading