Skip to content

Commit 3e3917a

Browse files
author
Christoph Rumpel
committed
Merge branch 'master' of github.com:laravel-notification-channels/twitter
2 parents 05a300d + 6a0e802 commit 3e3917a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/TwitterStatusUpdateTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ public function image_paths_parameter_is_optional()
2626
$this->assertEquals(null, $message->getImages());
2727
}
2828

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+
2938
/** @test */
3039
public function it_accepts_array_of_image_paths()
3140
{

0 commit comments

Comments
 (0)