FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Tests for MaintenanceController. More...
Public Member Functions | |
testCreateMaintenance () | |
Public Attributes | |
const | YAML_LOC = __DIR__ . '/../../../ui/api/documentation/openapi.yaml' |
Protected Member Functions | |
setUp () | |
Setup test objects. More... | |
Private Member Functions | |
getResponseJson ($response) | |
Private Attributes | |
$maintenanceController | |
$assertCountBefore | |
$dbHelper | |
$restHelper | |
$auth | |
$maintagentPlugin | |
Tests for MaintenanceController.
Definition at line 36 of file MaintenanceControllerTest.php.
|
private |
Helper function to get JSON array from response
Response | $response |
Definition at line 128 of file MaintenanceControllerTest.php.
|
protected |
Setup test objects.
Setup test objects
Definition at line 91 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenance | ( | ) |
Definition at line 139 of file MaintenanceControllerTest.php.
|
private |
Assertions before running tests
Definition at line 56 of file MaintenanceControllerTest.php.
|
private |
Auth mock
Definition at line 74 of file MaintenanceControllerTest.php.
|
private |
DbHelper mock
Definition at line 62 of file MaintenanceControllerTest.php.
|
private |
maintagentPlugin mock
Definition at line 80 of file MaintenanceControllerTest.php.
|
private |
MaintenanceController object to test
Definition at line 50 of file MaintenanceControllerTest.php.
|
private |
RestHelper mock
Definition at line 68 of file MaintenanceControllerTest.php.
string Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::YAML_LOC = __DIR__ . '/../../../ui/api/documentation/openapi.yaml' |
Location of openapi.yaml file
Definition at line 44 of file MaintenanceControllerTest.php.