FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Tests for MaintenanceController. More...
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 | |
$rq | |
$OPTIONS =[] | |
Tests for MaintenanceController.
Definition at line 39 of file MaintenanceControllerTest.php.
|
private |
Helper function to get JSON array from response
Response | $response |
Definition at line 153 of file MaintenanceControllerTest.php.
|
protected |
Setup test objects.
Setup test objects
Definition at line 103 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenance | ( | ) |
Definition at line 164 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceInvalidGoldDate | ( | ) |
Definition at line 316 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceInvalidLogsDate | ( | ) |
Definition at line 355 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceOptionKeyNotFound | ( | ) |
Definition at line 281 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceUserNotAdmin | ( | ) |
Definition at line 223 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceWithBadRequest | ( | ) |
Definition at line 257 of file MaintenanceControllerTest.php.
|
private |
Assertions before running tests
Definition at line 59 of file MaintenanceControllerTest.php.
|
private |
Auth mock
Definition at line 77 of file MaintenanceControllerTest.php.
|
private |
DbHelper mock
Definition at line 65 of file MaintenanceControllerTest.php.
|
private |
maintagentPlugin mock
Definition at line 83 of file MaintenanceControllerTest.php.
|
private |
MaintenanceController object to test
Definition at line 53 of file MaintenanceControllerTest.php.
|
private |
RestHelper mock
Definition at line 71 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 47 of file MaintenanceControllerTest.php.