Try and add a random Example target
This commit is contained in:
parent
d08f3af75f
commit
83f5d6eb82
2 changed files with 4 additions and 2 deletions
|
@ -322,7 +322,9 @@ class MicropubClientController extends Controller
|
||||||
private function parseSyndicationTargets($syndicationTargets = null)
|
private function parseSyndicationTargets($syndicationTargets = null)
|
||||||
{
|
{
|
||||||
if ($syndicationTargets === null) {
|
if ($syndicationTargets === null) {
|
||||||
return;
|
return [
|
||||||
|
['target' => 'http://example.org', 'name' => 'Joe Bloggs on Example']
|
||||||
|
];
|
||||||
}
|
}
|
||||||
$syndicateTo = [];
|
$syndicateTo = [];
|
||||||
$data = json_decode($syndicationTargets, true);
|
$data = json_decode($syndicationTargets, true);
|
||||||
|
|
|
@ -26,7 +26,7 @@ class MicropubClientTest extends DuskTestCase
|
||||||
$browser->visit(route('micropub-client'))
|
$browser->visit(route('micropub-client'))
|
||||||
->assertDontSee('jonnybarnes on Twitter')
|
->assertDontSee('jonnybarnes on Twitter')
|
||||||
->clickLink('Refresh Syndication Targets')
|
->clickLink('Refresh Syndication Targets')
|
||||||
->pause(10000)
|
->pause(5000)
|
||||||
->assertSee('jonnybarnes on Twitter');
|
->assertSee('jonnybarnes on Twitter');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue