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

Tests for LicenseStandardComment model. More...

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

Public Member Functions

 testConstructor ()
 
 testGetId ()
 Test getting the ID. More...
 
 testGetName ()
 Test getting the name. More...
 
 testGetComment ()
 Test getting the comment text. More...
 
 testGetIsEnabled ()
 Test getting the isEnabled status. More...
 
 testSetId ()
 Test setting the ID. More...
 
 testSetName ()
 Test setting the name. More...
 
 testSetComment ()
 Test setting the comment text. More...
 
 testSetIsEnabled ()
 Test setting the isEnabled status. More...
 
 testGetArrayV1 ()
 Test getting an array representation for API version 1. More...
 
 testGetArrayV2 ()
 Test getting an array representation for API version 2. More...
 
 testGetJSONV1 ()
 Test getting JSON representation for API version 1. More...
 
 testGetJSONV2 ()
 Test getting JSON representation for API version 2. More...
 
 testEmptyValues ()
 Test handling empty values. More...
 

Protected Member Functions

 setUp ()
 Setup test data.
 

Private Attributes

 $sampleData
 

Detailed Description

Tests for LicenseStandardComment model.

Definition at line 22 of file LicenseStandardCommentTest.php.

Member Function Documentation

◆ testConstructor()

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

Tests that the LicenseStandardComment constructor initializes an instance correctly.

Returns
void

Definition at line 46 of file LicenseStandardCommentTest.php.

◆ testEmptyValues()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testEmptyValues ( )

Test handling empty values.

Test:

Definition at line 228 of file LicenseStandardCommentTest.php.

◆ testGetArrayV1()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetArrayV1 ( )

Test getting an array representation for API version 1.

Test:

Definition at line 152 of file LicenseStandardCommentTest.php.

◆ testGetArrayV2()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetArrayV2 ( )

Test getting an array representation for API version 2.

Test:

Definition at line 173 of file LicenseStandardCommentTest.php.

◆ testGetComment()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetComment ( )

Test getting the comment text.

Test:

Definition at line 85 of file LicenseStandardCommentTest.php.

◆ testGetId()

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

Test getting the ID.

Test:

Definition at line 63 of file LicenseStandardCommentTest.php.

◆ testGetIsEnabled()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetIsEnabled ( )

Test getting the isEnabled status.

Test:

Definition at line 96 of file LicenseStandardCommentTest.php.

◆ testGetJSONV1()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetJSONV1 ( )

Test getting JSON representation for API version 1.

Test:

Definition at line 194 of file LicenseStandardCommentTest.php.

◆ testGetJSONV2()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testGetJSONV2 ( )

Test getting JSON representation for API version 2.

Test:

Definition at line 211 of file LicenseStandardCommentTest.php.

◆ testGetName()

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

Test getting the name.

Test:

Definition at line 74 of file LicenseStandardCommentTest.php.

◆ testSetComment()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testSetComment ( )

Test setting the comment text.

Test:

Definition at line 130 of file LicenseStandardCommentTest.php.

◆ testSetId()

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

Test setting the ID.

Test:

Definition at line 108 of file LicenseStandardCommentTest.php.

◆ testSetIsEnabled()

Fossology\UI\Api\Test\Models\LicenseStandardCommentTest::testSetIsEnabled ( )

Test setting the isEnabled status.

Test:

Definition at line 141 of file LicenseStandardCommentTest.php.

◆ testSetName()

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

Test setting the name.

Test:

Definition at line 119 of file LicenseStandardCommentTest.php.


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