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 3232 <env name =" TELEGRAM_CHANNEL" value =" null" />
3333 <env name =" FATHOM_SITE_ID" value =" 1234" />
3434 <env name =" FATHOM_TOKEN" value =" 5678" />
35- <env name =" UNSPLASH_ACCESS_KEY" value =" abcde " />
35+ <env name =" UNSPLASH_ACCESS_KEY" value =" null " />
3636 </php >
3737</phpunit >
Original file line number Diff line number Diff line change 33use App \Console \Commands \SyncArticleImages ;
44use App \Models \Article ;
55use Illuminate \Foundation \Testing \DatabaseMigrations ;
6+ use Illuminate \Support \Facades \Config ;
67use Illuminate \Support \Facades \Http ;
78use Tests \TestCase ;
89
1112
1213
1314test ('hero image url and author information is updated for published articles with hero image ' , function () {
15+ Config::set ('services.unsplash.access_key ' , 'test ' );
16+
1417 Http::fake (function () {
1518 return [
1619 'urls ' => [
4144});
4245
4346test ('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+
4449 $ article = Article::factory ()->create ([
4550 'submitted_at ' => now (),
4651 'approved_at ' => now (),
You can’t perform that action at this time.
0 commit comments