@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * Send the given notification. |
26 | 26 | * |
27 | - * @param mixed $notifiable |
|
27 | + * @param Test\TestNotifiable $notifiable |
|
28 | 28 | * @param \Illuminate\Notifications\Notification $notification |
29 | 29 | * |
30 | 30 | * @throws InvalidPostContentException |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | */ |
26 | 26 | private $apiEndpoint = 'me/feed'; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $postContent |
|
30 | + */ |
|
28 | 31 | public function __construct($postContent) |
29 | 32 | { |
30 | 33 | $this->content = $postContent; |
@@ -53,7 +56,7 @@ discard block |
||
53 | 56 | |
54 | 57 | /** |
55 | 58 | * Set facebook post image |
56 | - * @param string $link |
|
59 | + * @param string $imagePath |
|
57 | 60 | * @return $this |
58 | 61 | */ |
59 | 62 | public function withImage($imagePath,$endpoint = 'me/photos') |
@@ -63,7 +66,7 @@ discard block |
||
63 | 66 | } |
64 | 67 | /** |
65 | 68 | * Set facebook post image |
66 | - * @param string $link |
|
69 | + * @param string $videoPath |
|
67 | 70 | * @return $this |
68 | 71 | */ |
69 | 72 | public function withVideo($videoPath,$data = [],$endpoint = 'me/videos') |
@@ -2,9 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace NotificationChannels\FacebookPoster; |
4 | 4 | |
5 | -use NotificationChannels\FacebookPoster\Attaches\Link; |
|
6 | 5 | use NotificationChannels\FacebookPoster\Attaches\Image; |
7 | -use NotificationChannels\FacebookPoster\Attaches\Video; |
|
6 | +use NotificationChannels\FacebookPoster\Attaches\Link; |
|
8 | 7 | |
9 | 8 | class FacebookPosterPost |
10 | 9 | { |
@@ -79,7 +79,7 @@ |
||
79 | 79 | use \Illuminate\Notifications\Notifiable; |
80 | 80 | |
81 | 81 | /** |
82 | - * @return int |
|
82 | + * @return boolean |
|
83 | 83 | */ |
84 | 84 | public function routeNotificationForFacebookPoster() |
85 | 85 | { |
@@ -3,14 +3,11 @@ |
||
3 | 3 | namespace NotificationChannels\FacebookPoster\Test; |
4 | 4 | |
5 | 5 | use Facebook\Facebook; |
6 | -use Facebook\FileUpload\FacebookFile; |
|
7 | 6 | use Illuminate\Notifications\Notification; |
8 | 7 | use Mockery; |
9 | -use NotificationChannels\FacebookPoster\Attaches\Image; |
|
10 | 8 | use NotificationChannels\FacebookPoster\FacebookPosterChannel; |
11 | 9 | use NotificationChannels\FacebookPoster\FacebookPosterPost; |
12 | 10 | use Orchestra\Testbench\TestCase; |
13 | -use stdClass; |
|
14 | 11 | |
15 | 12 | class FacebookPosterChannelTest extends TestCase |
16 | 13 | { |