Commit 3eba742d by Jonathan Reinink Committed by GitHub

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

Update tests to retrieve props from page
2 parents 732a62e0 a3fd6a1f
Showing with 1 additions and 1 deletions
...@@ -16,7 +16,7 @@ abstract class TestCase extends BaseTestCase ...@@ -16,7 +16,7 @@ abstract class TestCase extends BaseTestCase
parent::setUp(); parent::setUp();
TestResponse::macro('props', function ($key = null) { 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) { if ($key) {
return Arr::get($props, $key); return Arr::get($props, $key);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!