![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Test for LicenseCsvImport. More...


Public Attributes | |
| $assertCountBefore | |
Protected Member Functions | |
| setUp () | |
| One time setup for test. More... | |
| tearDown () | |
| Close mockery. More... | |
Private Member Functions | |
| createCandidateTable ($dbManager) | |
| addLicenseInsertToDbManager (&$dbManager, $row, $return, $table="license_ref") | |
Test for LicenseCsvImport.
Definition at line 22 of file LicenseCsvImportTest.php.
|
private |
Add a new mockery handler for new license insertion in DB
| DbManager | $dbManager | The mock object of DbManager |
| array | $row | The associated array |
| mixed | $return | The value which should be returned |
| string | $table | The table where new data should go |
Definition at line 852 of file LicenseCsvImportTest.php.
|
private |
Create candidate license table
| DbManager | $dbManager |
Definition at line 837 of file LicenseCsvImportTest.php.
|
protected |
One time setup for test.
Definition at line 30 of file LicenseCsvImportTest.php.
|
protected |
Close mockery.
Definition at line 39 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testGetKeyFromMd5 | ( | ) |
Test for LicenseCsvImport::getKeyFromMd5()
license_ref.Definition at line 99 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testGetKeyFromShortname | ( | ) |
Test for LicenseCsvImport::getKeyFromShortname()
license_ref.Definition at line 54 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleCsv | ( | ) |
Test for LicenseCsvImport::handleCsv()
Definition at line 543 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleCsvLicense | ( | ) |
Test for LicenseCsvImport::handleCsvLicense()
Definition at line 131 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleCsvWithoutLicenseType | ( | ) |
Test for LicenseCsvImport::handleCsv() without licensetype column.
Unknown. Definition at line 595 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleFile | ( | ) |
Test for LicenseCsvImport::handleFile() (csv file with header)
head okay. Definition at line 689 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleFileIfFileIsNotParsable | ( | ) |
Test for LicenseCsvImport::handleFile() (non-csv file)
Error while parsing file Definition at line 673 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleFileIfFileNotExists | ( | ) |
Test for LicenseCsvImport::handleFile() (non-existing file)
Internal error Definition at line 658 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleHeadCsv | ( | ) |
Test for LicenseCsvImport::handleHeadCsv()
Definition at line 445 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testHandleHeadCsv_missingMandidatoryKey | ( | ) |
Test for LicenseCsvImport::handleHeadCsv()
Definition at line 483 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testInsertNewLicenseKeepsActiveFlag | ( | ) |
Test for LicenseCsvImport::insertNewLicense() active flag.
active false, true and missing.Definition at line 800 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testSetDelimiter | ( | ) |
Test for LicenseCsvImport::setDelimiter()
Definition at line 501 of file LicenseCsvImportTest.php.
| Fossology\Lib\Application\LicenseCsvImportTest::testSetEnclosure | ( | ) |
Test for LicenseCsvImport::setEnclosure()
Definition at line 523 of file LicenseCsvImportTest.php.