From c1b316b64163fe6e66c81336040ea22f35771e69 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sun, 26 Jan 2020 19:03:34 +0000 Subject: [PATCH] =?UTF-8?q?Use=20Laravel=206=E2=80=99s=20new=20test=20meth?= =?UTF-8?q?ods=20for=20HTTP=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Feature/MicropubControllerTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/Feature/MicropubControllerTest.php b/tests/Feature/MicropubControllerTest.php index 1098258c..d2c0bccc 100644 --- a/tests/Feature/MicropubControllerTest.php +++ b/tests/Feature/MicropubControllerTest.php @@ -124,8 +124,7 @@ class MicropubControllerTest extends TestCase { $faker = \Faker\Factory::create(); $note = $faker->text; - $response = $this->call( - 'POST', + $response = $this->post( '/api/post', [ 'h' => 'entry', @@ -133,8 +132,6 @@ class MicropubControllerTest extends TestCase 'published' => Carbon::now()->toW3CString(), 'location' => 'geo:1.23,4.56', ], - [], - [], ['HTTP_Authorization' => 'Bearer ' . $this->getToken()] ); $response->assertJson(['response' => 'created']);