Merge remote-tracking branch 'origin/1.5.x-response-request-models' into cache-attr-migrations
This commit is contained in:
commit
46398f41ae
2 changed files with 9 additions and 6 deletions
|
@ -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'],
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue