Skip to content

Commit 0079b48

Browse files
committed
Resolved - A guest or an authenticated user can list questions (laravel-portugal#26)
1 parent 28e56a8 commit 0079b48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

domains/Discussions/Tests/Feature/QuestionsGetTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public function it_searchable_by_author(): void
104104
/** @test */
105105
public function it_searchable_by_title(): void
106106
{
107-
QuestionFactory::new(['title' => 'LARAVEL-PT'.Carbon::now()->toString()])->create();
108-
QuestionFactory::new(['title' => 'LARAVEL-PT'.Carbon::now()->toString()])->create();
107+
QuestionFactory::new(['title' => 'LARAVEL-PT'])->create();
108+
QuestionFactory::new(['title' => 'laravel-pt'])->create();
109109

110-
$response = $this->get(route('discussions.questions.index', ['title' => 'LARAVEL-PT']));
110+
$response = $this->get(route('discussions.questions.index', ['title' => 'LArAvEL-pt']));
111111

112112
$this->assertEquals(2, $response->decodedJsonResponse()['meta']['total']);
113113
}

0 commit comments

Comments
 (0)