diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php index 83a2c5eb..c8545185 100644 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -16,6 +16,5 @@ class VerifyCsrfToken extends BaseVerifier 'api/post', 'webmention', 'places/new', - 'micropub' ]; } diff --git a/tests/Browser/MicropubClientTest.php b/tests/Browser/MicropubClientTest.php index 757ec0f5..56f14c68 100644 --- a/tests/Browser/MicropubClientTest.php +++ b/tests/Browser/MicropubClientTest.php @@ -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) { $browser->visit(route('micropub-client')) - ->type('textarea[name="content"]', $note) - ->press('submit'); - sleep(2); - $this->assertDatabaseHas('notes', ['note' => $note]); + ->clickLink('Refresh Syndication Targets') + ->assertSee('jonnybarnes'); }); - //reset database - $newNote = \App\Note::where('note', $note)->first(); - $newNote->forceDelete(); } }