File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/Integration/Commands Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ protected function fetchUnsplashImageDataFromId(string $imageId): ?array
5959 return [
6060 'image_url ' => $ response ['urls ' ]['raw ' ],
6161 'author_name ' => $ response ['user ' ]['name ' ],
62- 'author_url ' => $ response ['user ' ]['links ' ]['html ' ]
62+ 'author_url ' => $ response ['user ' ]['links ' ]['html ' ],
6363 ];
6464 }
6565}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public function hasHeroImage(): bool
108108
109109 public function hasHeroImageAuthor (): bool
110110 {
111- return $ this ->hero_image_author_name !== null &&
111+ return $ this ->hero_image_author_name !== null &&
112112 $ this ->hero_image_author_url !== null ;
113113 }
114114
Original file line number Diff line number Diff line change 1616 Http::fake (function () {
1717 return [
1818 'urls ' => [
19- 'raw ' => 'https://images.unsplash.com/photo-1584824486509-112e4181ff6b?ixid=M3w2NTgwOTl8MHwxfGFsbHx8fHx8fHx8fDE3Mjc2ODMzMzZ8&ixlib=rb-4.0.3 '
19+ 'raw ' => 'https://images.unsplash.com/photo-1584824486509-112e4181ff6b?ixid=M3w2NTgwOTl8MHwxfGFsbHx8fHx8fHx8fDE3Mjc2ODMzMzZ8&ixlib=rb-4.0.3 ' ,
2020 ],
2121 'user ' => [
2222 'name ' => 'Erik Mclean ' ,
2323 'links ' => [
2424 'html ' => 'https://unsplash.com/@introspectivedsgn ' ,
25- ]
25+ ],
2626 ],
2727 ];
2828 });
4444
4545test ('hero image url and author information is not updated for published articles with no hero image ' , function () {
4646 Config::set ('services.unsplash.access_key ' , 'test ' );
47-
47+
4848 $ article = Article::factory ()->create ([
4949 'submitted_at ' => now (),
5050 'approved_at ' => now (),
You can’t perform that action at this time.
0 commit comments