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

Test for Upload model. More...

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

Public Member Functions

 testConstructor ()
 
 testDataFormatV1 ()
 
 testDataFormatV2 ()
 

Private Member Functions

 testDataFormat ($version)
 

Detailed Description

Test for Upload model.

Definition at line 26 of file UploadTest.php.

Member Function Documentation

◆ testConstructor()

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

Tests that the Upload constructor initializes an instance correctly.

Returns
void

Definition at line 36 of file UploadTest.php.

◆ testDataFormat()

Fossology\UI\Api\Test\Models\UploadTest::testDataFormat (   $version)
private
Parameters
$versionversion to test
Returns
void
  1. Test the data format returned by Upload::getArray($version) model

Definition at line 65 of file UploadTest.php.

◆ testDataFormatV1()

Fossology\UI\Api\Test\Models\UploadTest::testDataFormatV1 ( )
Test:
  1. Test the data format returned by Upload::getArray($version) model when $version is V1

Definition at line 48 of file UploadTest.php.

◆ testDataFormatV2()

Fossology\UI\Api\Test\Models\UploadTest::testDataFormatV2 ( )
Test:
  1. Test the data format returned by Upload::getArray($version) model when $version is V2

Definition at line 56 of file UploadTest.php.


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