File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/Integration/Commands Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 32
32
<env name =" TELEGRAM_CHANNEL" value =" null" />
33
33
<env name =" FATHOM_SITE_ID" value =" 1234" />
34
34
<env name =" FATHOM_TOKEN" value =" 5678" />
35
- <env name =" UNSPLASH_ACCESS_KEY" value =" abcde " />
35
+ <env name =" UNSPLASH_ACCESS_KEY" value =" null " />
36
36
</php >
37
37
</phpunit >
Original file line number Diff line number Diff line change 3
3
use App \Console \Commands \SyncArticleImages ;
4
4
use App \Models \Article ;
5
5
use Illuminate \Foundation \Testing \DatabaseMigrations ;
6
+ use Illuminate \Support \Facades \Config ;
6
7
use Illuminate \Support \Facades \Http ;
7
8
use Tests \TestCase ;
8
9
11
12
12
13
13
14
test ('hero image url and author information is updated for published articles with hero image ' , function () {
15
+ Config::set ('services.unsplash.access_key ' , 'test ' );
16
+
14
17
Http::fake (function () {
15
18
return [
16
19
'urls ' => [
41
44
});
42
45
43
46
test ('hero image url and author information is not updated for published articles with no hero image ' , function () {
47
+ Config::set ('services.unsplash.access_key ' , 'test ' );
48
+
44
49
$ article = Article::factory ()->create ([
45
50
'submitted_at ' => now (),
46
51
'approved_at ' => now (),
You can’t perform that action at this time.
0 commit comments