Skip to content

Commit

Permalink
Add route that returns an array as specified in issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Oct 11, 2016
1 parent 012df7b commit 6da21bb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions features/bootstrap/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,31 @@
], 500);
});

$app->match('/issue-13', function(Application $app) {
return new JsonResponse([
'customer' => [
'id' => '12345',
'name' => 'Behat Testing API',
'images' => [
[
'id' => '5678',
'filename_client' => 'tech.ai',
'filename_preview' => 'testimage-converted.png',
'filename_print' => 'testimage.ai',
'url' => '\/media\/testimage-converted.png',
'created_time' => '2016-10-10 07 => 28 => 42'
], [
'id' => '7890',
'filename_client' => 'demo.ai',
'filename_preview' => 'demoimage-converted.png',
'filename_print' => 'demoimage.ai',
'url' => '\/media\/demoimage-converted.png',
'created_time' => '2016-10-10 07 => 38 => 22'
],
],
],
]);
});

// Run the application
$app->run();

0 comments on commit 6da21bb

Please sign in to comment.