Skip to content

Commit

Permalink
Fixing test because a model should not be act as recently created
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Oct 16, 2018
1 parent 11af0e1 commit dcab0a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Feature/V1/Auth/AuthTest.php
Expand Up @@ -49,9 +49,12 @@ public function user_cannot_retrieve_a_jwt()
/** @test */
public function user_can_be_authenticated_with_jwt()
{
$this->actingAs($this->anakin())
$anakin = $this->anakin();
$anakin->wasRecentlyCreated = false;

$this->actingAs($anakin)
->json('GET', '/api/v1/auth/me')
->assertStatus(201)
->assertStatus(200)
->assertJsonStructure([
'data' => [
'name',
Expand Down

0 comments on commit dcab0a9

Please sign in to comment.