This commit is contained in:
2026-01-18 23:53:31 +03:00
parent 17eec3ebc0
commit 6a7325f0fd
334 changed files with 1074 additions and 680 deletions

View File

@@ -19,7 +19,7 @@ test('it throws AlfaBankException on BaaS error', function () {
$connector->withMockClient($mockClient);
$connector->login('id', 'secret');
})->throws(AlfaBankException::class, 'Alfa Bank API Error: [invalid_client] Bad client secret');
})->throws(AlfaBankException::class, 'Alfa Bank API Error: [invalid_client] (Unknown) Bad client secret');
test('it throws AlfaBankException on SBP error', function () {
$mockClient = new \Saloon\Http\Faking\MockClient([
@@ -37,4 +37,4 @@ test('it throws AlfaBankException on SBP error', function () {
protected \Saloon\Enums\Method $method = \Saloon\Enums\Method::GET;
public function resolveEndpoint(): string { return '/'; }
});
})->throws(AlfaBankException::class, 'Alfa Bank API Error: [RQ05014] Invalid amount');
})->throws(AlfaBankException::class, 'Alfa Bank API Error: [RQ05014] (Unknown) Invalid amount');