Drop create note test to check syndication test
This commit is contained in:
parent
2ef6b93117
commit
ef50b48b31
2 changed files with 3 additions and 11 deletions
|
@ -16,6 +16,5 @@ class VerifyCsrfToken extends BaseVerifier
|
||||||
'api/post',
|
'api/post',
|
||||||
'webmention',
|
'webmention',
|
||||||
'places/new',
|
'places/new',
|
||||||
'micropub'
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue