Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee687df commit e0b8655Copy full SHA for e0b8655
src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php
@@ -127,13 +127,9 @@ public function testSentMessageContainsAnArrayOfMessages()
127
128
$body = json_decode($requestOptions['body'] ?? '');
129
130
- $messages = $body->messages;
131
- $this->assertIsArray($messages);
132
- $this->assertCount(1, $messages);
133
-
134
- $message = $messages[array_key_first($messages)];
135
- $this->assertIsObject($message);
136
- $this->assertTrue(property_exists($message, 'to'));
137
- $this->assertTrue(property_exists($message, 'body'));
+ $this->assertIsArray($body->messages);
+ $this->assertCount(1, $body->messages);
+ $this->assertSame('phone', $body->messages[0]->to);
+ $this->assertSame('testMessage', $body->messages[0]->body);
138
}
139
0 commit comments