From a3fd6a1f1ec4b7557135fdcd838f10f022582a3a Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Wed, 24 Apr 2019 13:35:16 +0100 Subject: [PATCH] Retrieve props from inside page object --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index c5510e0..03a1f98 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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);