mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 23:29:57 +08:00
Convert more helpers in tests
This commit is contained in:
@ -60,7 +60,7 @@ class CreateDiscussionControllerTest extends ApiControllerTestCase
|
||||
$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'], Arr::get($data, 'data.attributes.title'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user