Tests for User model.
More...
Tests for User model.
Definition at line 29 of file UserTest.php.
◆ setUp()
Fossology\UI\Api\Test\Models\UserTest::setUp |
( |
| ) |
|
|
protected |
Setup test objects.
- See also
- PHPUnit_Framework_TestCase::setUp()
Definition at line 56 of file UserTest.php.
◆ tearDown()
Fossology\UI\Api\Test\Models\UserTest::tearDown |
( |
| ) |
|
|
protected |
Remove test objects.
- See also
- PHPUnit_Framework_TestCase::tearDown()
Definition at line 75 of file UserTest.php.
◆ testDataFormat()
Fossology\UI\Api\Test\Models\UserTest::testDataFormat |
( |
|
$version | ) |
|
|
private |
◆ testDataFormatV1()
Fossology\UI\Api\Test\Models\UserTest::testDataFormatV1 |
( |
| ) |
|
Helper function to get JSON array from response
- Parameters
-
- Returns
- array Decoded response
- Test:
- Test the data format returned by User::getArray($version) model when $version is V1
- Create expected array
- Create test object and set the values
- Get the array from object and match with expected array
Definition at line 95 of file UserTest.php.
◆ testDataFormatV2()
Fossology\UI\Api\Test\Models\UserTest::testDataFormatV2 |
( |
| ) |
|
- Test:
- Test the data format returned by User::getArray($version) model when $version is V2
- Create expected array
- Create test object and set the values
- Get the array from object and match with expected array
Definition at line 107 of file UserTest.php.
◆ $assertCountBefore
integer Fossology\UI\Api\Test\Models\UserTest::$assertCountBefore |
|
private |
Assertions before running tests
Definition at line 35 of file UserTest.php.
◆ $dbHelper
DbHelper Fossology\UI\Api\Test\Models\UserTest::$dbHelper |
|
private |
◆ $restHelper
RestHelper Fossology\UI\Api\Test\Models\UserTest::$restHelper |
|
private |
◆ $userDao
UserDao Fossology\UI\Api\Test\Models\UserTest::$userDao |
|
private |
The documentation for this class was generated from the following file: