Tests for JobController.
More...
Tests for JobController.
Definition at line 36 of file JobControllerTest.php.
◆ getResponseJson()
Fossology\UI\Api\Test\Controllers\JobControllerTest::getResponseJson |
( |
|
$response | ) |
|
|
private |
◆ getUsers()
Fossology\UI\Api\Test\Controllers\JobControllerTest::getUsers |
( |
|
$userIds | ) |
|
|
private |
Generate array of users
- Parameters
-
array | $userIds | User ids to be generated |
- Returns
- array[]
Definition at line 133 of file JobControllerTest.php.
◆ setUp()
Fossology\UI\Api\Test\Controllers\JobControllerTest::setUp |
( |
| ) |
|
|
protected |
Setup test objects.
- See also
- PHPUnit_Framework_TestCase::setUp()
Definition at line 84 of file JobControllerTest.php.
◆ tearDown()
Fossology\UI\Api\Test\Controllers\JobControllerTest::tearDown |
( |
| ) |
|
|
protected |
Remove test objects.
- See also
- PHPUnit_Framework_TestCase::tearDown()
Definition at line 108 of file JobControllerTest.php.
◆ testGetInvalidJob()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetInvalidJob |
( |
| ) |
|
◆ testGetJobFromId()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetJobFromId |
( |
| ) |
|
◆ testGetJobs()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetJobs |
( |
| ) |
|
◆ testGetJobsFromUpload()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetJobsFromUpload |
( |
| ) |
|
◆ testGetJobsLimitPage()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetJobsLimitPage |
( |
| ) |
|
◆ testGetJobStatus()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetJobStatus |
( |
| ) |
|
- Test:
- Test JobController::getJobStatus()
- Setup one job with two complete children => result Completed
- Setup one job with one child processing and other in queue => result Processing
- Setup one job with one child completed and one failed => result Failed
Definition at line 375 of file JobControllerTest.php.
◆ testGetUploadEtaInSeconds()
Fossology\UI\Api\Test\Controllers\JobControllerTest::testGetUploadEtaInSeconds |
( |
| ) |
|
◆ $assertCountBefore
integer Fossology\UI\Api\Test\Controllers\JobControllerTest::$assertCountBefore |
|
private |
◆ $dbHelper
DbHelper Fossology\UI\Api\Test\Controllers\JobControllerTest::$dbHelper |
|
private |
◆ $jobController
JobController Fossology\UI\Api\Test\Controllers\JobControllerTest::$jobController |
|
private |
◆ $jobDao
JobDao Fossology\UI\Api\Test\Controllers\JobControllerTest::$jobDao |
|
private |
◆ $restHelper
RestHelper Fossology\UI\Api\Test\Controllers\JobControllerTest::$restHelper |
|
private |
◆ $showJobsDao
ShowJobsDao Fossology\UI\Api\Test\Controllers\JobControllerTest::$showJobsDao |
|
private |
◆ $streamFactory
StreamFactory Fossology\UI\Api\Test\Controllers\JobControllerTest::$streamFactory |
|
private |
The documentation for this class was generated from the following file: