Drop create note test to check syndication test

This commit is contained in:
Jonny Barnes 2017-02-23 09:15:25 +00:00
parent 2ef6b93117
commit ef50b48b31
2 changed files with 3 additions and 11 deletions

View file

@ -16,6 +16,5 @@ class VerifyCsrfToken extends BaseVerifier
'api/post', 'api/post',
'webmention', 'webmention',
'places/new', 'places/new',
'micropub'
]; ];
} }

View file

@ -20,19 +20,12 @@ class MicropubClientTest extends DuskTestCase
}); });
} }
public function test_client_page_creates_new_note() public function test_client_page_updates_syndication()
{ {
$faker = \Faker\Factory::create();
$note = $faker->text;
$this->browse(function ($browser) use ($note) { $this->browse(function ($browser) use ($note) {
$browser->visit(route('micropub-client')) $browser->visit(route('micropub-client'))
->type('textarea[name="content"]', $note) ->clickLink('Refresh Syndication Targets')
->press('submit'); ->assertSee('jonnybarnes');
sleep(2);
$this->assertDatabaseHas('notes', ['note' => $note]);
}); });
//reset database
$newNote = \App\Note::where('note', $note)->first();
$newNote->forceDelete();
} }
} }