mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 12:49:27 +00:00
a3a9c42e99
- All the controllers exends APIv1_Controller rather than REST_Controller - Codeceptions modified to be compliant to changes
12 lines
399 B
PHP
12 lines
399 B
PHP
<?php
|
|
|
|
$I = new ApiTester($scenario);
|
|
$I->wantTo('Test API call v1/lehre/studiengang/AllForBewerbung');
|
|
$I->amHttpAuthenticated("admin", "1q2w3");
|
|
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
|
|
$I->sendGET('v1/lehre/studiengang/AllForBewerbung');
|
|
$I->seeResponseCodeIs(200);
|
|
$I->seeResponseIsJson();
|
|
$I->seeResponseContainsJson([
|
|
'success' => TRUE,
|
|
'message' => 'Courses found']); |