From 024e074b83f9b63c0fe4924fd28f3a771330af5f Mon Sep 17 00:00:00 2001 From: luceos Date: Fri, 13 Apr 2018 07:07:02 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- .../tests/Api/Controller/CreateDiscussionControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/tests/Api/Controller/CreateDiscussionControllerTest.php b/framework/core/tests/Api/Controller/CreateDiscussionControllerTest.php index fb6f6ba8e..ac82e81fb 100644 --- a/framework/core/tests/Api/Controller/CreateDiscussionControllerTest.php +++ b/framework/core/tests/Api/Controller/CreateDiscussionControllerTest.php @@ -40,11 +40,11 @@ class CreateDiscussionControllerTest extends ApiControllerTestCase $this->assertEquals(201, $response->getStatusCode()); /** @var Discussion $discussion */ - $discussion = Discussion::where("title", $this->data['title'])->firstOrFail(); + $discussion = Discussion::where('title', $this->data['title'])->firstOrFail(); $data = json_decode($response->getBody()->getContents(), true); $this->assertEquals($this->data['title'], $discussion->title); - $this->assertEquals($this->data['title'], array_get($data, "data.attributes.title")); + $this->assertEquals($this->data['title'], array_get($data, 'data.attributes.title')); } /**