From 83f5d6eb8252e1ba8c899ebd0daae891fe925ef4 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 24 Feb 2017 11:28:52 +0000 Subject: [PATCH] Try and add a random Example target --- app/Http/Controllers/MicropubClientController.php | 4 +++- tests/Browser/MicropubClientTest.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 4f01b1d1..eed9bd35 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -322,7 +322,9 @@ class MicropubClientController extends Controller private function parseSyndicationTargets($syndicationTargets = null) { if ($syndicationTargets === null) { - return; + return [ + ['target' => 'http://example.org', 'name' => 'Joe Bloggs on Example'] + ]; } $syndicateTo = []; $data = json_decode($syndicationTargets, true); diff --git a/tests/Browser/MicropubClientTest.php b/tests/Browser/MicropubClientTest.php index 5aa1ba53..5ca3a5a5 100644 --- a/tests/Browser/MicropubClientTest.php +++ b/tests/Browser/MicropubClientTest.php @@ -26,7 +26,7 @@ class MicropubClientTest extends DuskTestCase $browser->visit(route('micropub-client')) ->assertDontSee('jonnybarnes on Twitter') ->clickLink('Refresh Syndication Targets') - ->pause(10000) + ->pause(5000) ->assertSee('jonnybarnes on Twitter'); }); }