Moved existing functional tests into resource server folder

This commit is contained in:
Alex Bilbie
2014-07-22 12:15:41 +01:00
parent 47a5c1ba08
commit 395ee3bf49
12 changed files with 23 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
<?php
$I = new ResourceServerTester($scenario);
$I->wantTo('get all users with all basic and email fields');
$I->sendGET('api.php/users?access_token=iamphil');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
[
'username' => 'alexbilbie',
'name' => 'Alex Bilbie',
'email' => 'hello@alexbilbie.com'
],
[
'username' => 'philsturgeon',
'name' => 'Phil Sturgeon',
'email' => 'email@philsturgeon.co.uk'
]
]);