mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
8ae6e0c766
commit
024e074b83
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user