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


Public Member Functions | |
| testUpdateLicenseWithOnlyCompatibilityChanged () | |
| Test for LicenseCompatibilityRulesYamlImport::updateLicense() when only the compatibility changed. More... | |
| testUpdateLicenseWithOnlyCommentChanged () | |
| Test for LicenseCompatibilityRulesYamlImport::updateLicense() when only the description changed. More... | |
| testUpdateLicenseWithBothChanged () | |
| Test for LicenseCompatibilityRulesYamlImport::updateLicense() when both values changed. More... | |
| testUpdateLicenseWithNoChange () | |
| Test for LicenseCompatibilityRulesYamlImport::updateLicense() when nothing changed. More... | |
| testHandleYamlWithUnknownLicense () | |
| Test for LicenseCompatibilityRulesYamlImport::handleYaml() with a license unknown to the server. More... | |
| testHandleYamlWithMissingColumn () | |
| Test for LicenseCompatibilityRulesYamlImport::handleYaml() with a missing column. More... | |
| testHandleYamlResolvesLicenseIds () | |
| Test for LicenseCompatibilityRulesYamlImport::handleYaml() resolving the license short names. More... | |
Protected Member Functions | |
| setUp () | |
| One time setup for test. More... | |
| tearDown () | |
| Close mockery. More... | |
Private Member Functions | |
| whenStoredRuleIs ($compatibility, $comment) | |
| Make the DB return the given rule as the currently stored one. More... | |
Private Attributes | |
| $dbManager | |
| $licenseDao | |
| $compatibilityDao | |
| $yamlImport | |
| $assertCountBefore | |
Test for LicenseCompatibilityRulesYamlImport.
Definition at line 22 of file LicenseCompatibilityRulesYamlImportTest.php.
|
protected |
One time setup for test.
Definition at line 47 of file LicenseCompatibilityRulesYamlImportTest.php.
|
protected |
Close mockery.
Definition at line 66 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testHandleYamlResolvesLicenseIds | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::handleYaml() resolving the license short names.
Definition at line 219 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testHandleYamlWithMissingColumn | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::handleYaml() with a missing column.
Definition at line 198 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testHandleYamlWithUnknownLicense | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::handleYaml() with a license unknown to the server.
Definition at line 174 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testUpdateLicenseWithBothChanged | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::updateLicense() when both values changed.
Definition at line 133 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testUpdateLicenseWithNoChange | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::updateLicense() when nothing changed.
Definition at line 155 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testUpdateLicenseWithOnlyCommentChanged | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::updateLicense() when only the description changed.
Definition at line 113 of file LicenseCompatibilityRulesYamlImportTest.php.
| Fossology\Lib\Application\LicenseCompatibilityRulesYamlImportTest::testUpdateLicenseWithOnlyCompatibilityChanged | ( | ) |
Test for LicenseCompatibilityRulesYamlImport::updateLicense() when only the compatibility changed.
Definition at line 92 of file LicenseCompatibilityRulesYamlImportTest.php.
|
private |
Make the DB return the given rule as the currently stored one.
| string | $compatibility | Stored compatibility, 't' or 'f' |
| string | $comment | Stored description |
Definition at line 78 of file LicenseCompatibilityRulesYamlImportTest.php.
|
private |
CompatibilityDao mock
Definition at line 34 of file LicenseCompatibilityRulesYamlImportTest.php.
|
private |
DbManager mock
Definition at line 26 of file LicenseCompatibilityRulesYamlImportTest.php.
|
private |
LicenseDao mock
Definition at line 30 of file LicenseCompatibilityRulesYamlImportTest.php.
|
private |
Object under test
Definition at line 38 of file LicenseCompatibilityRulesYamlImportTest.php.