FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Test\Models\AnalysisTest Class Reference

Tests for Analysis model. More...

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

Public Member Functions

 testSetUsingArrayV1 ()
 
 testSetUsingArrayV2 ()
 
 testSetUsingString ()
 
 testDataFormatV1 ()
 
 testDataFormatV2 ()
 
 testGetBucket ()
 
 testSetBucket ()
 
 testGetCopyright ()
 
 testSetCopyright ()
 
 testGetEcc ()
 
 testSetEcc ()
 
 testGetKeyword ()
 
 testSetKeyword ()
 
 testGetMime ()
 
 testSetMime ()
 
 testGetMonk ()
 

Private Member Functions

 testSetUsingArray ($version)
 
 testDataFormat ($version)
 

Detailed Description

Tests for Analysis model.

Definition at line 28 of file AnalysisTest.php.

Member Function Documentation

◆ testDataFormat()

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

Definition at line 148 of file AnalysisTest.php.

◆ testDataFormatV1()

Fossology\UI\Api\Test\Models\AnalysisTest::testDataFormatV1 ( )
Test:
  1. Test the data format returned by Analysis::getArray($version) model when $version is V1
  2. Create expected array
  3. Create test object and set the values
  4. Get the array from object and match with expected array

Definition at line 126 of file AnalysisTest.php.

◆ testDataFormatV2()

Fossology\UI\Api\Test\Models\AnalysisTest::testDataFormatV2 ( )
Test:
  1. Test the data format returned by Analysis::getArray($version) model when $version is V2
  2. Create expected array
  3. Create test object and set the values
  4. Get the array from object and match with expected array

Definition at line 138 of file AnalysisTest.php.

◆ testGetBucket()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetBucket ( )
Test:
  1. Test getter for bucket

Definition at line 196 of file AnalysisTest.php.

◆ testGetCopyright()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetCopyright ( )
Test:
  1. Test getter for copyright

Definition at line 217 of file AnalysisTest.php.

◆ testGetEcc()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetEcc ( )
Test:
  1. Test getter for ecc

Definition at line 238 of file AnalysisTest.php.

◆ testGetKeyword()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetKeyword ( )
Test:
  1. Test getter for keyword

Definition at line 259 of file AnalysisTest.php.

◆ testGetMime()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetMime ( )
Test:
  1. Test getter for mimetype

Definition at line 280 of file AnalysisTest.php.

◆ testGetMonk()

Fossology\UI\Api\Test\Models\AnalysisTest::testGetMonk ( )
Test:
  1. Test getter for monk

Definition at line 301 of file AnalysisTest.php.

◆ testSetBucket()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetBucket ( )
Test:
  1. Test setter for bucket

Definition at line 206 of file AnalysisTest.php.

◆ testSetCopyright()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetCopyright ( )
Test:
  1. Test setter for copyright

Definition at line 227 of file AnalysisTest.php.

◆ testSetEcc()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetEcc ( )
Test:
  1. Test setter for ecc

Definition at line 248 of file AnalysisTest.php.

◆ testSetKeyword()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetKeyword ( )
Test:
  1. Test setter for keyword

Definition at line 269 of file AnalysisTest.php.

◆ testSetMime()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetMime ( )
Test:
  1. Test setter for mimetype

Definition at line 290 of file AnalysisTest.php.

◆ testSetUsingArray()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetUsingArray (   $version)
private
Parameters
$versionversion to test
Returns
void
  1. Test for Analysis::setUsingArray() to check if the Analysis object is updated with actual array values

Definition at line 55 of file AnalysisTest.php.

◆ testSetUsingArrayV1()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetUsingArrayV1 ( )
Test:
  1. Test for Analysis::setUsingArray() when $version is V1
  2. Check if the Analysis object is updated with actual array values

Definition at line 35 of file AnalysisTest.php.

◆ testSetUsingArrayV2()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetUsingArrayV2 ( )
Test:
  1. Test for Analysis::setUsingArray() when $version is V2
  2. Check if the Analysis object is updated with actual array values

Definition at line 45 of file AnalysisTest.php.

◆ testSetUsingString()

Fossology\UI\Api\Test\Models\AnalysisTest::testSetUsingString ( )
Test:
  1. Test for Analysis::setUsingString()
  2. Create two strings with different delimiters
  3. Check if the created Analysis objects hold expected values

Definition at line 95 of file AnalysisTest.php.


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