Fix issue#1
This commit is contained in:
parent
4797da562b
commit
0504555774
2 changed files with 13 additions and 2 deletions
|
@ -43,10 +43,10 @@ class MicropubClientTest extends TestCase
|
|||
/**
|
||||
* This currently creates a new note that stays in the database.
|
||||
*/
|
||||
public function testClientCreatesNewNote()
|
||||
public function testClientCreatesNewNoteWithTag()
|
||||
{
|
||||
$faker = \Faker\Factory::create();
|
||||
$note = 'Fake note from PHPUnit: ' . $faker->text;
|
||||
$note = 'Fake note from #PHPUnit: ' . $faker->text;
|
||||
$this->withSession([
|
||||
'me' => $this->appurl,
|
||||
'token' => $this->getToken()
|
||||
|
@ -54,6 +54,8 @@ class MicropubClientTest extends TestCase
|
|||
->type($note, 'content')
|
||||
->press('Submit');
|
||||
$this->seeInDatabase('notes', ['note' => $note]);
|
||||
$this->visit($this->appurl . '/notes/tagged/PHPUnit')
|
||||
->see('PHPUnit');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue