Skip to content

A free open source IT asset/license management system

renamed again for git to accept case

snipe555555330751
diff --git a/tests/Browser/LoginTest.php b/Tests/Browser/LoginTest.php
similarity index 100%
rename from tests/Browser/LoginTest.php
rename to Tests/Browser/LoginTest.php
diff --git a/tests/Browser/Pages/HomePage.php b/Tests/Browser/Pages/HomePage.php
similarity index 100%
rename from tests/Browser/Pages/HomePage.php
rename to Tests/Browser/Pages/HomePage.php
diff --git a/tests/Browser/Pages/Page.php b/Tests/Browser/Pages/Page.php
similarity index 100%
rename from tests/Browser/Pages/Page.php
rename to Tests/Browser/Pages/Page.php
diff --git a/tests/Browser/console/.gitignore b/Tests/Browser/console/.gitignore
similarity index 100%
rename from tests/Browser/console/.gitignore
rename to Tests/Browser/console/.gitignore
diff --git a/tests/Browser/screenshots/.gitignore b/Tests/Browser/screenshots/.gitignore
similarity index 100%
rename from tests/Browser/screenshots/.gitignore
rename to Tests/Browser/screenshots/.gitignore
diff --git a/tests/Browser/source/.gitignore b/Tests/Browser/source/.gitignore
similarity index 100%
rename from tests/Browser/source/.gitignore
rename to Tests/Browser/source/.gitignore
diff --git a/tests/CreatesApplication.php b/Tests/CreatesApplication.php
similarity index 100%
rename from tests/CreatesApplication.php
rename to Tests/CreatesApplication.php
diff --git a/tests/DuskTestCase.php b/Tests/DuskTestCase.php
similarity index 100%
rename from tests/DuskTestCase.php
rename to Tests/DuskTestCase.php
diff --git a/tests/TestCase.php b/Tests/TestCase.php
similarity index 100%
rename from tests/TestCase.php
rename to Tests/TestCase.php
diff --git a/tests/unit/AccessoryTest.php b/Tests/Unit-Rename/AccessoryTest.php
similarity index 100%
rename from tests/unit/AccessoryTest.php
rename to Tests/Unit-Rename/AccessoryTest.php
diff --git a/tests/unit/AssetMaintenanceTest.php b/Tests/Unit-Rename/AssetMaintenanceTest.php
similarity index 100%
rename from tests/unit/AssetMaintenanceTest.php
rename to Tests/Unit-Rename/AssetMaintenanceTest.php
diff --git a/tests/unit/AssetModelTest.php b/Tests/Unit-Rename/AssetModelTest.php
similarity index 100%
rename from tests/unit/AssetModelTest.php
rename to Tests/Unit-Rename/AssetModelTest.php
diff --git a/tests/unit/AssetTest.php b/Tests/Unit-Rename/AssetTest.php
similarity index 100%
rename from tests/unit/AssetTest.php
rename to Tests/Unit-Rename/AssetTest.php
diff --git a/tests/unit/BaseTest.php b/Tests/Unit-Rename/BaseTest.php
similarity index 100%
rename from tests/unit/BaseTest.php
rename to Tests/Unit-Rename/BaseTest.php
diff --git a/tests/unit/CategoryTest.php b/Tests/Unit-Rename/CategoryTest.php
similarity index 100%
rename from tests/unit/CategoryTest.php
rename to Tests/Unit-Rename/CategoryTest.php
diff --git a/tests/unit/CompanyTest.php b/Tests/Unit-Rename/CompanyTest.php
similarity index 91%
rename from tests/unit/CompanyTest.php
rename to Tests/Unit-Rename/CompanyTest.php
index 11842847bc..c354c3ace7 100644
--- a/tests/unit/CompanyTest.php
+++ b/Tests/Unit-Rename/CompanyTest.php
@@ -6,6 +6,7 @@ use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\Unit\BaseTest;
+use App\Models\Company;
class CompanyTest extends BaseTest
{
@@ -17,13 +18,13 @@ class CompanyTest extends BaseTest
public function testFailsEmptyValidation()
{
// An Company requires a name, a qty, and a category_id.
- $a = Company::create();
- $this->assertFalse($a->isValid());
+ $company = Company::factory()->assetDesktopCategory()->create();
+ $this->assertFalse($company->isValid());
$fields = [
'name' => 'name',
];
- $errors = $a->getErrors();
+ $errors = $company->getErrors();
foreach ($fields as $field => $fieldTitle) {
$this->assertEquals($errors->get($field)[0], "The ${fieldTitle} field is required.");
}
@@ -31,7 +32,7 @@ class CompanyTest extends BaseTest
public function testACompanyCanHaveUsers()
{
- $company = $this->createValidCompany();
+ $company = Category::factory()->assetDesktopCategory()->create();
$user = $this->createValidUser(['company_id'=>$company->id]);
$this->assertCount(1, $company->users);
}
diff --git a/tests/unit/ComponentTest.php b/Tests/Unit-Rename/ComponentTest.php
similarity index 100%
rename from tests/unit/ComponentTest.php
rename to Tests/Unit-Rename/ComponentTest.php
diff --git a/tests/unit/ConsumableTest.php b/Tests/Unit-Rename/ConsumableTest.php
similarity index 100%
rename from tests/unit/ConsumableTest.php
rename to Tests/Unit-Rename/ConsumableTest.php
diff --git a/tests/unit/CustomFieldTest.php b/Tests/Unit-Rename/CustomFieldTest.php
similarity index 100%
rename from tests/unit/CustomFieldTest.php
rename to Tests/Unit-Rename/CustomFieldTest.php
diff --git a/tests/unit/DepreciationTest.php b/Tests/Unit-Rename/DepreciationTest.php
similarity index 100%
rename from tests/unit/DepreciationTest.php
rename to Tests/Unit-Rename/DepreciationTest.php
diff --git a/tests/unit/ImporterTest.php b/Tests/Unit-Rename/ImporterTest.php
similarity index 100%
rename from tests/unit/ImporterTest.php
rename to Tests/Unit-Rename/ImporterTest.php
diff --git a/tests/unit/LocationTest.php b/Tests/Unit-Rename/LocationTest.php
similarity index 100%
rename from tests/unit/LocationTest.php
rename to Tests/Unit-Rename/LocationTest.php
diff --git a/tests/unit/NotificationTest.php b/Tests/Unit-Rename/NotificationTest.php
similarity index 100%
rename from tests/unit/NotificationTest.php
rename to Tests/Unit-Rename/NotificationTest.php
diff --git a/tests/unit/PermissionsTest.php b/Tests/Unit-Rename/PermissionsTest.php
similarity index 100%
rename from tests/unit/PermissionsTest.php
rename to Tests/Unit-Rename/PermissionsTest.php
diff --git a/tests/unit/SnipeModelTest.php b/Tests/Unit-Rename/SnipeModelTest.php
similarity index 100%
rename from tests/unit/SnipeModelTest.php
rename to Tests/Unit-Rename/SnipeModelTest.php
diff --git a/tests/unit/StatuslabelTest.php b/Tests/Unit-Rename/StatuslabelTest.php
similarity index 100%
rename from tests/unit/StatuslabelTest.php
rename to Tests/Unit-Rename/StatuslabelTest.php
diff --git a/tests/unit/UserTest.php b/Tests/Unit-Rename/UserTest.php
similarity index 100%
rename from tests/unit/UserTest.php
rename to Tests/Unit-Rename/UserTest.php
diff --git a/tests/acceptance/_bootstrap.php b/Tests/Unit-Rename/_bootstrap.php
similarity index 100%
rename from tests/acceptance/_bootstrap.php
rename to Tests/Unit-Rename/_bootstrap.php
diff --git a/tests/_bootstrap.php b/Tests/_bootstrap.php
similarity index 100%
rename from tests/_bootstrap.php
rename to Tests/_bootstrap.php
diff --git a/tests/_data/IMPORT_ACCESSORIES.csv b/Tests/_data/IMPORT_ACCESSORIES.csv
similarity index 100%
rename from tests/_data/IMPORT_ACCESSORIES.csv
rename to Tests/_data/IMPORT_ACCESSORIES.csv
diff --git a/tests/_data/IMPORT_ASSETS.csv b/Tests/_data/IMPORT_ASSETS.csv
similarity index 100%
rename from tests/_data/IMPORT_ASSETS.csv
rename to Tests/_data/IMPORT_ASSETS.csv
diff --git a/tests/_data/IMPORT_CONSUMABLES.csv b/Tests/_data/IMPORT_CONSUMABLES.csv
similarity index 100%
rename from tests/_data/IMPORT_CONSUMABLES.csv
rename to Tests/_data/IMPORT_CONSUMABLES.csv
diff --git a/tests/_envs/functional-travis.yml b/Tests/_envs/functional-travis.yml
similarity index 100%
rename from tests/_envs/functional-travis.yml
rename to Tests/_envs/functional-travis.yml
diff --git a/tests/_envs/testing-ci.yml b/Tests/_envs/testing-ci.yml
similarity index 100%
rename from tests/_envs/testing-ci.yml
rename to Tests/_envs/testing-ci.yml
diff --git a/tests/_envs/testing.yml b/Tests/_envs/testing.yml
similarity index 100%
rename from tests/_envs/testing.yml
rename to Tests/_envs/testing.yml
diff --git a/tests/_output/.gitignore b/Tests/_output/.gitignore
similarity index 100%
rename from tests/_output/.gitignore
rename to Tests/_output/.gitignore
diff --git a/tests/_support/AcceptanceTester.php b/Tests/_support/AcceptanceTester.php
similarity index 100%
rename from tests/_support/AcceptanceTester.php
rename to Tests/_support/AcceptanceTester.php
diff --git a/tests/_support/ApiTester.php b/Tests/_support/ApiTester.php
similarity index 100%
rename from tests/_support/ApiTester.php
rename to Tests/_support/ApiTester.php
diff --git a/tests/_support/FunctionalTester.php b/Tests/_support/FunctionalTester.php
similarity index 100%
rename from tests/_support/FunctionalTester.php
rename to Tests/_support/FunctionalTester.php
diff --git a/tests/_support/Helper/Acceptance.php b/Tests/_support/Helper/Acceptance.php
similarity index 100%
rename from tests/_support/Helper/Acceptance.php
rename to Tests/_support/Helper/Acceptance.php
diff --git a/tests/_support/Helper/Api.php b/Tests/_support/Helper/Api.php
similarity index 100%
rename from tests/_support/Helper/Api.php
rename to Tests/_support/Helper/Api.php
diff --git a/tests/_support/Helper/Functional.php b/Tests/_support/Helper/Functional.php
similarity index 100%
rename from tests/_support/Helper/Functional.php
rename to Tests/_support/Helper/Functional.php
diff --git a/tests/_support/Helper/HTMLValidator.php b/Tests/_support/Helper/HTMLValidator.php
similarity index 100%
rename from tests/_support/Helper/HTMLValidator.php
rename to Tests/_support/Helper/HTMLValidator.php
diff --git a/tests/_support/Helper/Unit.php b/Tests/_support/Helper/Unit.php
similarity index 100%
rename from tests/_support/Helper/Unit.php
rename to Tests/_support/Helper/Unit.php
diff --git a/tests/_support/UnitTester.php b/Tests/_support/UnitTester.php
similarity index 100%
rename from tests/_support/UnitTester.php
rename to Tests/_support/UnitTester.php
diff --git a/tests/acceptance.suite.yml b/Tests/acceptance.suite.yml
similarity index 100%
rename from tests/acceptance.suite.yml
rename to Tests/acceptance.suite.yml
diff --git a/tests/acceptance/AccessoriesCept.php b/Tests/acceptance/AccessoriesCept.php
similarity index 100%
rename from tests/acceptance/AccessoriesCept.php
rename to Tests/acceptance/AccessoriesCept.php
diff --git a/tests/acceptance/AssetsCept.php b/Tests/acceptance/AssetsCept.php
similarity index 100%
rename from tests/acceptance/AssetsCept.php
rename to Tests/acceptance/AssetsCept.php
diff --git a/tests/acceptance/AssetsCest.php b/Tests/acceptance/AssetsCest.php
similarity index 100%
rename from tests/acceptance/AssetsCest.php
rename to Tests/acceptance/AssetsCest.php
diff --git a/tests/acceptance/CategoriesCept.php b/Tests/acceptance/CategoriesCept.php
similarity index 100%
rename from tests/acceptance/CategoriesCept.php
rename to Tests/acceptance/CategoriesCept.php
diff --git a/tests/acceptance/CompaniesCept.php b/Tests/acceptance/CompaniesCept.php
similarity index 100%
rename from tests/acceptance/CompaniesCept.php
rename to Tests/acceptance/CompaniesCept.php
diff --git a/tests/acceptance/ConsumablesCept.php b/Tests/acceptance/ConsumablesCept.php
similarity index 100%
rename from tests/acceptance/ConsumablesCept.php
rename to Tests/acceptance/ConsumablesCept.php
diff --git a/tests/acceptance/CustomfieldsCept.php b/Tests/acceptance/CustomfieldsCept.php
similarity index 100%
rename from tests/acceptance/CustomfieldsCept.php
rename to Tests/acceptance/CustomfieldsCept.php
diff --git a/tests/acceptance/DepartmentsCept.php b/Tests/acceptance/DepartmentsCept.php
similarity index 100%
rename from tests/acceptance/DepartmentsCept.php
rename to Tests/acceptance/DepartmentsCept.php
diff --git a/tests/acceptance/DepreciationsCept.php b/Tests/acceptance/DepreciationsCept.php
similarity index 100%
rename from tests/acceptance/DepreciationsCept.php
rename to Tests/acceptance/DepreciationsCept.php
diff --git a/tests/acceptance/LocationsCept.php b/Tests/acceptance/LocationsCept.php
similarity index 100%
rename from tests/acceptance/LocationsCept.php
rename to Tests/acceptance/LocationsCept.php
diff --git a/tests/acceptance/LoginCest.php b/Tests/acceptance/LoginCest.php
similarity index 100%
rename from tests/acceptance/LoginCest.php
rename to Tests/acceptance/LoginCest.php
diff --git a/tests/acceptance/ManufacturersCept.php b/Tests/acceptance/ManufacturersCept.php
similarity index 100%
rename from tests/acceptance/ManufacturersCept.php
rename to Tests/acceptance/ManufacturersCept.php
diff --git a/tests/acceptance/StatuslabelsCept.php b/Tests/acceptance/StatuslabelsCept.php
similarity index 100%
rename from tests/acceptance/StatuslabelsCept.php
rename to Tests/acceptance/StatuslabelsCept.php
diff --git a/tests/acceptance/SuppliersCept.php b/Tests/acceptance/SuppliersCept.php
similarity index 100%
rename from tests/acceptance/SuppliersCept.php
rename to Tests/acceptance/SuppliersCept.php
diff --git a/tests/acceptance/UsersCept.php b/Tests/acceptance/UsersCept.php
similarity index 100%
rename from tests/acceptance/UsersCept.php
rename to Tests/acceptance/UsersCept.php
diff --git a/tests/api/_bootstrap.php b/Tests/acceptance/_bootstrap.php
similarity index 100%
rename from tests/api/_bootstrap.php
rename to Tests/acceptance/_bootstrap.php
diff --git a/tests/api.suite.yml b/Tests/api.suite.yml
similarity index 100%
rename from tests/api.suite.yml
rename to Tests/api.suite.yml
diff --git a/tests/api/ApiAccessoriesCest.php b/Tests/api/ApiAccessoriesCest.php
similarity index 100%
rename from tests/api/ApiAccessoriesCest.php
rename to Tests/api/ApiAccessoriesCest.php
diff --git a/tests/api/ApiAssetsCest.php b/Tests/api/ApiAssetsCest.php
similarity index 100%
rename from tests/api/ApiAssetsCest.php
rename to Tests/api/ApiAssetsCest.php
diff --git a/tests/api/ApiCategoriesCest.php b/Tests/api/ApiCategoriesCest.php
similarity index 100%
rename from tests/api/ApiCategoriesCest.php
rename to Tests/api/ApiCategoriesCest.php
diff --git a/tests/api/ApiCheckoutAssetsCest.php b/Tests/api/ApiCheckoutAssetsCest.php
similarity index 100%
rename from tests/api/ApiCheckoutAssetsCest.php
rename to Tests/api/ApiCheckoutAssetsCest.php
diff --git a/tests/api/ApiCompaniesCest.php b/Tests/api/ApiCompaniesCest.php
similarity index 100%
rename from tests/api/ApiCompaniesCest.php
rename to Tests/api/ApiCompaniesCest.php
diff --git a/tests/api/ApiComponentsAssetsCest.php b/Tests/api/ApiComponentsAssetsCest.php
similarity index 100%
rename from tests/api/ApiComponentsAssetsCest.php
rename to Tests/api/ApiComponentsAssetsCest.php
diff --git a/tests/api/ApiComponentsCest.php b/Tests/api/ApiComponentsCest.php
similarity index 100%
rename from tests/api/ApiComponentsCest.php
rename to Tests/api/ApiComponentsCest.php
diff --git a/tests/api/ApiConsumablesCest.php b/Tests/api/ApiConsumablesCest.php
similarity index 100%
rename from tests/api/ApiConsumablesCest.php
rename to Tests/api/ApiConsumablesCest.php
diff --git a/tests/api/ApiLicenseSeatsCest.php b/Tests/api/ApiLicenseSeatsCest.php
similarity index 100%
rename from tests/api/ApiLicenseSeatsCest.php
rename to Tests/api/ApiLicenseSeatsCest.php
diff --git a/tests/api/ApiLicensesCest.php b/Tests/api/ApiLicensesCest.php
similarity index 100%
rename from tests/api/ApiLicensesCest.php
rename to Tests/api/ApiLicensesCest.php
diff --git a/tests/api/ApiLocationsCest.php b/Tests/api/ApiLocationsCest.php
similarity index 100%
rename from tests/api/ApiLocationsCest.php
rename to Tests/api/ApiLocationsCest.php
diff --git a/tests/api/ApiManufacturersCest.php b/Tests/api/ApiManufacturersCest.php
similarity index 100%
rename from tests/api/ApiManufacturersCest.php
rename to Tests/api/ApiManufacturersCest.php
diff --git a/tests/api/ApiModelsCest.php b/Tests/api/ApiModelsCest.php
similarity index 100%
rename from tests/api/ApiModelsCest.php
rename to Tests/api/ApiModelsCest.php
diff --git a/tests/api/ApiStatusLabelsCest.php b/Tests/api/ApiStatusLabelsCest.php
similarity index 100%
rename from tests/api/ApiStatusLabelsCest.php
rename to Tests/api/ApiStatusLabelsCest.php
diff --git a/tests/api/ApiUsersCest.php b/Tests/api/ApiUsersCest.php
similarity index 100%
rename from tests/api/ApiUsersCest.php
rename to Tests/api/ApiUsersCest.php
diff --git a/tests/functional/_bootstrap.php b/Tests/api/_bootstrap.php
similarity index 100%
rename from tests/functional/_bootstrap.php
rename to Tests/api/_bootstrap.php
diff --git a/tests/functional.suite.yml b/Tests/functional.suite.yml
similarity index 100%
rename from tests/functional.suite.yml
rename to Tests/functional.suite.yml
diff --git a/tests/functional/AccessoriesCest.php b/Tests/functional/AccessoriesCest.php
similarity index 100%
rename from tests/functional/AccessoriesCest.php
rename to Tests/functional/AccessoriesCest.php
diff --git a/tests/functional/AssetModelsCest.php b/Tests/functional/AssetModelsCest.php
similarity index 100%
rename from tests/functional/AssetModelsCest.php
rename to Tests/functional/AssetModelsCest.php
diff --git a/tests/functional/AssetsCest.php b/Tests/functional/AssetsCest.php
similarity index 100%
rename from tests/functional/AssetsCest.php
rename to Tests/functional/AssetsCest.php
diff --git a/tests/functional/CategoriesCest.php b/Tests/functional/CategoriesCest.php
similarity index 100%
rename from tests/functional/CategoriesCest.php
rename to Tests/functional/CategoriesCest.php
diff --git a/tests/functional/CompaniesCest.php b/Tests/functional/CompaniesCest.php
similarity index 100%
rename from tests/functional/CompaniesCest.php
rename to Tests/functional/CompaniesCest.php
diff --git a/tests/functional/ComponentsCest.php b/Tests/functional/ComponentsCest.php
similarity index 100%
rename from tests/functional/ComponentsCest.php
rename to Tests/functional/ComponentsCest.php
diff --git a/tests/functional/ConsumablesCest.php b/Tests/functional/ConsumablesCest.php
similarity index 100%
rename from tests/functional/ConsumablesCest.php
rename to Tests/functional/ConsumablesCest.php
diff --git a/tests/functional/DepreciationsCest.php b/Tests/functional/DepreciationsCest.php
similarity index 100%
rename from tests/functional/DepreciationsCest.php
rename to Tests/functional/DepreciationsCest.php
diff --git a/tests/functional/GroupsCest.php b/Tests/functional/GroupsCest.php
similarity index 100%
rename from tests/functional/GroupsCest.php
rename to Tests/functional/GroupsCest.php
diff --git a/tests/functional/LicensesCest.php b/Tests/functional/LicensesCest.php
similarity index 100%
rename from tests/functional/LicensesCest.php
rename to Tests/functional/LicensesCest.php
diff --git a/tests/functional/LocationsCest.php b/Tests/functional/LocationsCest.php
similarity index 100%
rename from tests/functional/LocationsCest.php
rename to Tests/functional/LocationsCest.php
diff --git a/tests/functional/ManufacturersCest.php b/Tests/functional/ManufacturersCest.php
similarity index 100%
rename from tests/functional/ManufacturersCest.php
rename to Tests/functional/ManufacturersCest.php
diff --git a/tests/functional/StatusLabelsCest.php b/Tests/functional/StatusLabelsCest.php
similarity index 100%
rename from tests/functional/StatusLabelsCest.php
rename to Tests/functional/StatusLabelsCest.php
diff --git a/tests/functional/SuppliersCest.php b/Tests/functional/SuppliersCest.php
similarity index 100%
rename from tests/functional/SuppliersCest.php
rename to Tests/functional/SuppliersCest.php
diff --git a/tests/functional/UsersCest.php b/Tests/functional/UsersCest.php
similarity index 100%
rename from tests/functional/UsersCest.php
rename to Tests/functional/UsersCest.php
diff --git a/tests/unit/_bootstrap.php b/Tests/functional/_bootstrap.php
similarity index 100%
rename from tests/unit/_bootstrap.php
rename to Tests/functional/_bootstrap.php
diff --git a/tests/functional/func-part-1.txt b/Tests/functional/func-part-1.txt
similarity index 100%
rename from tests/functional/func-part-1.txt
rename to Tests/functional/func-part-1.txt
diff --git a/tests/functional/func-part-2.txt b/Tests/functional/func-part-2.txt
similarity index 100%
rename from tests/functional/func-part-2.txt
rename to Tests/functional/func-part-2.txt
diff --git a/tests/unit.suite.yml b/Tests/unit.suite.yml
similarity index 100%
rename from tests/unit.suite.yml
rename to Tests/unit.suite.yml