We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05a300d + 6a0e802 commit 3e3917aCopy full SHA for 3e3917a
tests/TwitterStatusUpdateTest.php
@@ -26,6 +26,15 @@ public function image_paths_parameter_is_optional()
26
$this->assertEquals(null, $message->getImages());
27
}
28
29
+ /** @test */
30
+ public function it_accepts_one_image_path()
31
+ {
32
+ $message = (new TwitterStatusUpdate('myMessage'))->withImage('image1.png');
33
+
34
+ $this->assertEquals('myMessage', $message->getContent());
35
+ $this->assertEquals([ new TwitterImage('image1.png') ], $message->getImages());
36
+ }
37
38
/** @test */
39
public function it_accepts_array_of_image_paths()
40
{
0 commit comments