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

Public Member Functions

 testDataFormatV1 ()
 
 testDataFormatV2 ()
 
 testGetPerm ()
 
 testSetPerm ()
 
 testGetGroupPk ()
 
 testSetGroupPk ()
 
 testGetGroupName ()
 
 testSetGroupName ()
 

Private Member Functions

 getGroupPermissionInfo ($version=ApiVersion::V2)
 
 testDataFormat ($version)
 

Detailed Description

Definition at line 18 of file GroupPermissionsTest.php.

Member Function Documentation

◆ getGroupPermissionInfo()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::getGroupPermissionInfo (   $version = ApiVersion::V2)
private

Provides test data and an instance of the GroupPermission class.

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

Definition at line 27 of file GroupPermissionsTest.php.

◆ testDataFormat()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testDataFormat (   $version)
private
  1. Test the data format returned by GroupPermission::getArray($version) model

Definition at line 71 of file GroupPermissionsTest.php.

◆ testDataFormatV1()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testDataFormatV1 ( )
Test:
  1. Test data model returned by GroupPermission::getArray($version) when API version is V1

Definition at line 54 of file GroupPermissionsTest.php.

◆ testDataFormatV2()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testDataFormatV2 ( )
Test:
  1. Test data model returned by GroupPermission::getArray($version) when API version is V2

Definition at line 63 of file GroupPermissionsTest.php.

◆ testGetGroupName()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testGetGroupName ( )

Tests GroupPermission::getGroupName() method.

This method validates that the getGroupName method returns the correct group name value.

Definition at line 129 of file GroupPermissionsTest.php.

◆ testGetGroupPk()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testGetGroupPk ( )

Tests GroupPermission::getGroupPk() method.

This method validates that the getGroupPk method returns the correct group ID value.

Definition at line 106 of file GroupPermissionsTest.php.

◆ testGetPerm()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testGetPerm ( )

Tests GroupPermission::getPerm() method.

This method validates that the getPerm method returns the correct permission value.

Definition at line 83 of file GroupPermissionsTest.php.

◆ testSetGroupName()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testSetGroupName ( )

Tests GroupPermission::setGroupName() method.

This method validates that the setGroupName method correctly updates the group name value.

Definition at line 140 of file GroupPermissionsTest.php.

◆ testSetGroupPk()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testSetGroupPk ( )

Tests GroupPermission::setGroupPk() method.

This method validates that the setGroupPk method correctly updates the group ID value.

Definition at line 117 of file GroupPermissionsTest.php.

◆ testSetPerm()

Fossology\UI\Api\Test\Models\GroupPermissionsTest::testSetPerm ( )

Tests GroupPermission::setPerm() method.

This method validates that the setPerm method correctly updates the permission value.

Definition at line 94 of file GroupPermissionsTest.php.


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