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

Tests for Decider model. More...

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

Public Member Functions

 testSetUsingArrayV1 ()
 
 testSetUsingArrayV2 ()
 
 testDataFormatV1 ()
 
 testDataFormatV2 ()
 

Private Member Functions

 testSetUsingArray ($version)
 
 testDataFormat ($version)
 

Detailed Description

Tests for Decider model.

Definition at line 22 of file DeciderTest.php.

Member Function Documentation

◆ testDataFormat()

Fossology\UI\Api\Test\Models\DeciderTest::testDataFormat (   $version)
private
Parameters
$versionversion to test
Returns
void
  1. Test the data format returned by Decider::getArray($version) model

Definition at line 104 of file DeciderTest.php.

◆ testDataFormatV1()

Fossology\UI\Api\Test\Models\DeciderTest::testDataFormatV1 ( )
Test:
  1. Test the data format returned by Decider::getArray($version) model when $version is V1
  2. Create expected array and update test object to match it
  3. Get the array from object and match with expected array

Definition at line 83 of file DeciderTest.php.

◆ testDataFormatV2()

Fossology\UI\Api\Test\Models\DeciderTest::testDataFormatV2 ( )
Test:
  1. Test the data format returned by Decider::getArray($version) model when $version is V2
  2. Create expected array and update test object to match it
  3. Get the array from object and match with expected array

Definition at line 94 of file DeciderTest.php.

◆ testSetUsingArray()

Fossology\UI\Api\Test\Models\DeciderTest::testSetUsingArray (   $version)
private
Parameters
$versionversion to test
Returns
void
  1. Test for Decider::setUsingArray() to check if the object is updated

Definition at line 51 of file DeciderTest.php.

◆ testSetUsingArrayV1()

Fossology\UI\Api\Test\Models\DeciderTest::testSetUsingArrayV1 ( )
Test:
  1. Test for Decider::setUsingArray() when $version is V1
  2. Create a test array and pass to setUsingArray() on test object
  3. Check if the object is updated

Definition at line 30 of file DeciderTest.php.

◆ testSetUsingArrayV2()

Fossology\UI\Api\Test\Models\DeciderTest::testSetUsingArrayV2 ( )
Test:
  1. Test for Decider::setUsingArray() when $version is V2
  2. Create a test array and pass to setUsingArray() on test object
  3. Check if the object is updated

Definition at line 41 of file DeciderTest.php.


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