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

Tests for Permissions model. More...

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

Public Member Functions

 testConstructor ()
 
 testGetPublicPerm ()
 
 testGetPermGroups ()
 
 testSetPublicPerm ()
 
 testSetPermGroups ()
 
 testGetArrayV1 ()
 
 testGetArrayV2 ()
 
 testGetJSONV1 ()
 
 testGetJSONV2 ()
 

Detailed Description

Tests for Permissions model.

Definition at line 23 of file PermissionsTest.php.

Member Function Documentation

◆ testConstructor()

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

Tests that the Permissions constructor initializes an instance correctly.

Returns
void

Definition at line 32 of file PermissionsTest.php.

◆ testGetArrayV1()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetArrayV1 ( )
Test:
  1. Test getArray method with API version V1
  2. Create Permissions object with test data
  3. Verify the array structure matches expected format for V1

Definition at line 98 of file PermissionsTest.php.

◆ testGetArrayV2()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetArrayV2 ( )
Test:
  1. Test getArray method with API version V2
  2. Create Permissions object with test data
  3. Verify the array structure matches expected format for V2

Definition at line 119 of file PermissionsTest.php.

◆ testGetJSONV1()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetJSONV1 ( )
Test:
  1. Test getJSON method with API version V1
  2. Create Permissions object with test data
  3. Verify JSON output matches expected format for V1

Definition at line 140 of file PermissionsTest.php.

◆ testGetJSONV2()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetJSONV2 ( )
Test:
  1. Test getJSON method with API version V2
  2. Create Permissions object with test data
  3. Verify JSON output matches expected format for V2

Definition at line 161 of file PermissionsTest.php.

◆ testGetPermGroups()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetPermGroups ( )
Test:
  1. Test getter for permGroups

Definition at line 59 of file PermissionsTest.php.

◆ testGetPublicPerm()

Fossology\UI\Api\Test\Models\PermissionsTest::testGetPublicPerm ( )
Test:
  1. Test getter for publicPerm

Definition at line 48 of file PermissionsTest.php.

◆ testSetPermGroups()

Fossology\UI\Api\Test\Models\PermissionsTest::testSetPermGroups ( )
Test:
  1. Test setter for permGroups

Definition at line 84 of file PermissionsTest.php.

◆ testSetPublicPerm()

Fossology\UI\Api\Test\Models\PermissionsTest::testSetPublicPerm ( )
Test:
  1. Test setter for publicPerm

Definition at line 72 of file PermissionsTest.php.


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