FOSSology  4.5.1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\ConfTest Class Reference

Tests for Conf model. More...

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

Public Member Functions

 testConstructor ()
 
 testGetArray ()
 
 testGetJson ()
 
 testGetKeyColumnName ()
 
 testDoesKeyExistValidKeys ()
 
 testDoesKeyExistInvalidKeys ()
 

Protected Member Functions

 setUp ()
 Setup test data.
 

Private Attributes

 $sampleData
 

Detailed Description

Tests for Conf model.

Definition at line 22 of file ConfTest.php.

Member Function Documentation

◆ testConstructor()

Fossology\UI\Api\Test\Models\ConfTest::testConstructor ( )

Tests that the Conf constructor initializes an instance correctly.

Returns
void

Definition at line 65 of file ConfTest.php.

◆ testDoesKeyExistInvalidKeys()

Fossology\UI\Api\Test\Models\ConfTest::testDoesKeyExistInvalidKeys ( )
Test:
  1. Test doesKeyExist method with invalid keys

Definition at line 153 of file ConfTest.php.

◆ testDoesKeyExistValidKeys()

Fossology\UI\Api\Test\Models\ConfTest::testDoesKeyExistValidKeys ( )
Test:
  1. Test doesKeyExist method with valid keys

Definition at line 139 of file ConfTest.php.

◆ testGetArray()

Fossology\UI\Api\Test\Models\ConfTest::testGetArray ( )
Test:
  1. Test the data format returned by Conf::getArray()

Definition at line 75 of file ConfTest.php.

◆ testGetJson()

Fossology\UI\Api\Test\Models\ConfTest::testGetJson ( )
Test:
  1. Test JSON encoding through getJSON() method

Definition at line 109 of file ConfTest.php.

◆ testGetKeyColumnName()

Fossology\UI\Api\Test\Models\ConfTest::testGetKeyColumnName ( )
Test:
  1. Test getKeyColumnName method

Definition at line 125 of file ConfTest.php.


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