FOSSology  4.4.0
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

 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 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 44 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 56 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 79 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 67 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 90 of file GroupTest.php.


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