1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Merge remote-tracking branch 'origin/1.5.x-response-request-models' into cache-attr-migrations

This commit is contained in:
Jake Barnby 2024-02-13 15:22:08 +13:00
commit 46398f41ae
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 9 additions and 6 deletions

View file

@ -138,8 +138,8 @@ class MessagingTest extends Scope
'Telesign' => [
'providerId' => $providers[3]['_id'],
'name' => 'Telesign2',
'username' => 'my-username',
'password' => 'my-password',
'customerId' => 'my-username',
'apiKey' => 'my-password',
],
'Textmagic' => [
'providerId' => $providers[4]['_id'],

View file

@ -51,8 +51,8 @@ trait MessagingBase
'telesign' => [
'providerId' => ID::unique(),
'name' => 'Telesign1',
'username' => 'my-username',
'password' => 'my-password',
'customerId' => 'my-username',
'apiKey' => 'my-password',
'from' => '+123456789',
],
'textmagic' => [
@ -142,8 +142,8 @@ trait MessagingBase
],
'telesign' => [
'name' => 'Telesign2',
'username' => 'my-username',
'password' => 'my-password',
'customerId' => 'my-username',
'apiKey' => 'my-password',
],
'textmagic' => [
'name' => 'Textmagic2',
@ -177,6 +177,7 @@ trait MessagingBase
'bundleId' => 'my-bundleid',
],
];
foreach (\array_keys($providersParams) as $index => $key) {
$response = $this->client->call(Client::METHOD_PATCH, '/messaging/providers/' . $key . '/' . $providers[$index]['$id'], [
'content-type' => 'application/json',
@ -202,7 +203,9 @@ trait MessagingBase
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals('Mailgun2', $response['body']['name']);
$this->assertEquals(false, $response['body']['enabled']);
$providers[1] = $response['body'];
return $providers;
}