Retrieve props from inside page object
This commit is contained in:
		
							parent
							
								
									732a62e048
								
							
						
					
					
						commit
						a3fd6a1f1e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jacob Baker-Kretzmar
						Jacob Baker-Kretzmar