Skip to content

Commit fc3a6f0

Browse files
committed
wip
1 parent 93d2e31 commit fc3a6f0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
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>

tests/Integration/Commands/SyncArticleImagesTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use App\Console\Commands\SyncArticleImages;
44
use App\Models\Article;
55
use Illuminate\Foundation\Testing\DatabaseMigrations;
6+
use Illuminate\Support\Facades\Config;
67
use Illuminate\Support\Facades\Http;
78
use Tests\TestCase;
89

@@ -11,6 +12,8 @@
1112

1213

1314
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+
1417
Http::fake(function () {
1518
return [
1619
'urls' => [
@@ -41,6 +44,8 @@
4144
});
4245

4346
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+
4449
$article = Article::factory()->create([
4550
'submitted_at' => now(),
4651
'approved_at' => now(),

0 commit comments

Comments
 (0)