FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\ReuserTest Class Reference

Tests for Reuser model. More...

Inheritance diagram for Fossology\UI\Api\Test\Models\ReuserTest:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Test\Models\ReuserTest:
Collaboration graph

Public Member Functions

 testReuserConst ()
 
 testReuserException ()
 
 testSetUsingArrayV1 ()
 
 testSetUsingArrayV2 ()
 
 testSetUsingArraySomeOptions ()
 
 testSetUsingArrayException ()
 

Private Member Functions

 testSetUsingArray ($version)
 

Detailed Description

Tests for Reuser model.

Definition at line 22 of file ReuserTest.php.

Member Function Documentation

◆ testReuserConst()

Fossology\UI\Api\Test\Models\ReuserTest::testReuserConst ( )
Test:
  1. Test constructor and Reuser::getArray()

Definition at line 28 of file ReuserTest.php.

◆ testReuserException()

Fossology\UI\Api\Test\Models\ReuserTest::testReuserException ( )
Test:
  1. Test if UnexpectedValueException is thrown for invalid upload and group id by constructor

Definition at line 49 of file ReuserTest.php.

◆ testSetUsingArray()

Fossology\UI\Api\Test\Models\ReuserTest::testSetUsingArray (   $version)
private
Parameters
$versionversion to test
Returns
void
  1. Test for Reuser::setUsingArray() to check if the Reuser object is updated with actual array values

Definition at line 81 of file ReuserTest.php.

◆ testSetUsingArrayException()

Fossology\UI\Api\Test\Models\ReuserTest::testSetUsingArrayException ( )
Test:
  1. Test if UnexpectedValueException is thrown for invalid upload and group id by Reuser::setUsingArray()

Definition at line 139 of file ReuserTest.php.

◆ testSetUsingArraySomeOptions()

Fossology\UI\Api\Test\Models\ReuserTest::testSetUsingArraySomeOptions ( )
Test:
  1. Test for Reuser::setUsingArray()
  2. Add some changes to the array.

Definition at line 115 of file ReuserTest.php.

◆ testSetUsingArrayV1()

Fossology\UI\Api\Test\Models\ReuserTest::testSetUsingArrayV1 ( )
Test:
  1. Test for Reuser::setUsingArray() when $version is V1
  2. Check if the Reuser object is updated with actual array values

Definition at line 61 of file ReuserTest.php.

◆ testSetUsingArrayV2()

Fossology\UI\Api\Test\Models\ReuserTest::testSetUsingArrayV2 ( )
Test:
  1. Test for Reuser::setUsingArray() when $version is V2
  2. Check if the Reuser object is updated with actual array values

Definition at line 71 of file ReuserTest.php.


The documentation for this class was generated from the following file: