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 146 of file MaintenanceControllerTest.php.
|
protected |
Setup test objects.
Definition at line 96 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenance | ( | ) |
Definition at line 157 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceInvalidGoldDate | ( | ) |
Definition at line 309 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceInvalidLogsDate | ( | ) |
Definition at line 348 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceOptionKeyNotFound | ( | ) |
Definition at line 274 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceUserNotAdmin | ( | ) |
Definition at line 216 of file MaintenanceControllerTest.php.
Fossology\UI\Api\Test\Controllers\MaintenanceControllerTest::testCreateMaintenanceWithBadRequest | ( | ) |
Definition at line 250 of file MaintenanceControllerTest.php.
|
private |
Assertions before running tests
Definition at line 57 of file MaintenanceControllerTest.php.
|
private |
Auth mock
Definition at line 75 of file MaintenanceControllerTest.php.
|
private |
DbHelper mock
Definition at line 63 of file MaintenanceControllerTest.php.
|
private |
maintagentPlugin mock
Definition at line 81 of file MaintenanceControllerTest.php.
|
private |
MaintenanceController object to test
Definition at line 51 of file MaintenanceControllerTest.php.
|
private |
RestHelper mock
Definition at line 69 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 45 of file MaintenanceControllerTest.php.