Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use patch http method
Fixes #14
  • Loading branch information
liepumartins authored Oct 25, 2018
commit f92d649192b4e8b0517dd182f8391e5a49befa74
4 changes: 2 additions & 2 deletions resources/templates/authentication_test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class $MODEL_NAME$AuthenticationTest extends TestCase
{
$$CAMEL_CASE_MODEL_NAME$ = factory($MODEL_NAME$::class)->create();

$response = $this->put($this->baseUrl.$$CAMEL_CASE_MODEL_NAME$->id, $$CAMEL_CASE_MODEL_NAME$->toArray());
$response = $this->patch($this->baseUrl.$$CAMEL_CASE_MODEL_NAME$->id, $$CAMEL_CASE_MODEL_NAME$->toArray());
$response->assertStatus(401);
}

Expand All @@ -63,7 +63,7 @@ class $MODEL_NAME$AuthenticationTest extends TestCase

$$CAMEL_CASE_MODEL_NAME$ = factory($MODEL_NAME$::class)->create();

$response = $this->put($this->baseUrl.$$CAMEL_CASE_MODEL_NAME$->id, $$CAMEL_CASE_MODEL_NAME$->toArray());
$response = $this->patch($this->baseUrl.$$CAMEL_CASE_MODEL_NAME$->id, $$CAMEL_CASE_MODEL_NAME$->toArray());

$response->assertStatus(200);
}
Expand Down