forked from apoloz/alfa-bank-sdk
refactor
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user