Merge pull request #17 from bakerkretzmar/test-page-props

Update tests to retrieve props from page
This commit is contained in:
Jonathan Reinink 2019-04-24 08:38:48 -04:00 committed by GitHub
commit 3eba742d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ abstract class TestCase extends BaseTestCase
parent::setUp();
TestResponse::macro('props', function ($key = null) {
$props = json_decode(json_encode($this->original->getData()['props']), JSON_OBJECT_AS_ARRAY);
$props = json_decode(json_encode($this->original->getData()['page']['props']), JSON_OBJECT_AS_ARRAY);
if ($key) {
return Arr::get($props, $key);