Tests for DbHelper.
More...
Tests for DbHelper.
Definition at line 35 of file DbHelperTest.php.
◆ generateUserFromRow()
Fossology\UI\Api\Test\Helper\DbHelperTest::generateUserFromRow |
( |
|
$rows, |
|
|
|
$currentUser = null |
|
) |
| |
|
private |
Generate User object array from DB array
- Parameters
-
array | $rows | |
integer | $currentUser | If set, returns complete object of user with provided id, others will be masked |
- Returns
- array
Definition at line 136 of file DbHelperTest.php.
◆ generateUserRow()
Fossology\UI\Api\Test\Helper\DbHelperTest::generateUserRow |
( |
| ) |
|
|
private |
Generate user row data to match database
- Returns
- array
Definition at line 104 of file DbHelperTest.php.
◆ setUp()
Fossology\UI\Api\Test\Helper\DbHelperTest::setUp |
( |
| ) |
|
|
protected |
Setup test objects.
- See also
- PHPUnit_Framework_TestCase::setUp()
Definition at line 71 of file DbHelperTest.php.
◆ tearDown()
Fossology\UI\Api\Test\Helper\DbHelperTest::tearDown |
( |
| ) |
|
|
protected |
Remove test objects.
- See also
- PHPUnit_Framework_TestCase::tearDown()
Definition at line 91 of file DbHelperTest.php.
◆ testGetUsersAll()
Fossology\UI\Api\Test\Helper\DbHelperTest::testGetUsersAll |
( |
| ) |
|
◆ testGetUsersAllNonAdmin()
Fossology\UI\Api\Test\Helper\DbHelperTest::testGetUsersAllNonAdmin |
( |
| ) |
|
◆ testGetUsersSingleUserAdmin()
Fossology\UI\Api\Test\Helper\DbHelperTest::testGetUsersSingleUserAdmin |
( |
| ) |
|
◆ testGetUsersSingleUserNonAdmin()
Fossology\UI\Api\Test\Helper\DbHelperTest::testGetUsersSingleUserNonAdmin |
( |
| ) |
|
◆ $assertCountBefore
integer Fossology\UI\Api\Test\Helper\DbHelperTest::$assertCountBefore |
|
private |
◆ $dbHelper
DbHelper Fossology\UI\Api\Test\Helper\DbHelperTest::$dbHelper |
|
private |
◆ $dbManager
◆ $folderDao
FolderDao Fossology\UI\Api\Test\Helper\DbHelperTest::$folderDao |
|
private |
◆ $uploadDao
UploadDao Fossology\UI\Api\Test\Helper\DbHelperTest::$uploadDao |
|
private |
The documentation for this class was generated from the following file: