FOSSology  4.5.1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\GroupTest Class Reference
Inheritance diagram for Fossology\UI\Api\Test\Models\GroupTest:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Test\Models\GroupTest:
Collaboration graph

Public Member Functions

 testConstructor ()
 
 testDataFormat ()
 
 testGetId ()
 
 testSetId ()
 
 testGetName ()
 
 testSetName ()
 

Private Member Functions

 getGroupInfo ()
 

Detailed Description

Definition at line 17 of file GroupTest.php.

Member Function Documentation

◆ getGroupInfo()

Fossology\UI\Api\Test\Models\GroupTest::getGroupInfo ( )
private

Provides test data and an instance of the Group class.

Returns
array An associative array containing:
  • expectedArray: The expected array structure.
  • obj: The instance of Group being tested.

Definition at line 39 of file GroupTest.php.

◆ testConstructor()

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

Tests that the Group constructor initializes an instance correctly.

Returns
void

Definition at line 26 of file GroupTest.php.

◆ testDataFormat()

Fossology\UI\Api\Test\Models\GroupTest::testDataFormat ( )

Tests Group::getArray() method.

This method validates that the getArray method returns the correct data structure.

Definition at line 57 of file GroupTest.php.

◆ testGetId()

Fossology\UI\Api\Test\Models\GroupTest::testGetId ( )

Tests Group::getId() method.

This method validates that the getId method returns the correct ID value.

Definition at line 69 of file GroupTest.php.

◆ testGetName()

Fossology\UI\Api\Test\Models\GroupTest::testGetName ( )

Tests Group::getName() method.

This method validates that the getName method returns the correct name value.

Definition at line 92 of file GroupTest.php.

◆ testSetId()

Fossology\UI\Api\Test\Models\GroupTest::testSetId ( )

Tests Group::setId() method.

This method validates that the setId method correctly updates the ID value.

Definition at line 80 of file GroupTest.php.

◆ testSetName()

Fossology\UI\Api\Test\Models\GroupTest::testSetName ( )

Tests Group::setName() method.

This method validates that the setName method correctly updates the name value.

Definition at line 103 of file GroupTest.php.


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