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
59
59
return [
60
60
'image_url ' => $ response ['urls ' ]['raw ' ],
61
61
'author_name ' => $ response ['user ' ]['name ' ],
62
- 'author_url ' => $ response ['user ' ]['links ' ]['html ' ]
62
+ 'author_url ' => $ response ['user ' ]['links ' ]['html ' ],
63
63
];
64
64
}
65
65
}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public function hasHeroImage(): bool
108
108
109
109
public function hasHeroImageAuthor (): bool
110
110
{
111
- return $ this ->hero_image_author_name !== null &&
111
+ return $ this ->hero_image_author_name !== null &&
112
112
$ this ->hero_image_author_url !== null ;
113
113
}
114
114
Original file line number Diff line number Diff line change 16
16
Http::fake (function () {
17
17
return [
18
18
'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 ' ,
20
20
],
21
21
'user ' => [
22
22
'name ' => 'Erik Mclean ' ,
23
23
'links ' => [
24
24
'html ' => 'https://unsplash.com/@introspectivedsgn ' ,
25
- ]
25
+ ],
26
26
],
27
27
];
28
28
});
44
44
45
45
test ('hero image url and author information is not updated for published articles with no hero image ' , function () {
46
46
Config::set ('services.unsplash.access_key ' , 'test ' );
47
-
47
+
48
48
$ article = Article::factory ()->create ([
49
49
'submitted_at ' => now (),
50
50
'approved_at ' => now (),
You can’t perform that action at this time.
0 commit comments