A free open source IT asset/license management system
Notes and style cleanups
Daniel Meltzer3e7fbb02b791
diff --git a/tests/functional/AssetsCest.php b/tests/functional/AssetsCest.phpindex 55501c7336..078a39aa92 100644--- a/tests/functional/AssetsCest.php+++ b/tests/functional/AssetsCest.php@@ -22,7 +22,6 @@ class AssetsCestpublic function failsEmptyValidation(FunctionalTester $I){-$I->wantTo("Test Validation Fails with blank elements");$I->amOnPage(route('hardware.create'));// Settings factory can enable auto prefixes, which generate a random asset id. Lets clear it out for the sake of this test.@@ -54,7 +53,7 @@ class AssetsCest'purchase_date' => '2016-01-01','requestable' => $asset->requestable,'rtd_location_id' => $asset->rtd_location_id,- 'serials[1]' => $asset->serial,+ 'serials[1]' => $asset->serial,'status_id' => $asset->status_id,'supplier_id' => $asset->supplier_id,'warranty_months' => $asset->warranty_months,diff --git a/tests/unit/CategoryTest.php b/tests/unit/CategoryTest.phpindex a725010cfb..69fc841ac9 100644--- a/tests/unit/CategoryTest.php+++ b/tests/unit/CategoryTest.php@@ -38,6 +38,7 @@ class CategoryTest extends BaseTest$this->assertCount(5, $category->models);$models->each(function($model) {+ // This is intentionally run twice to generate the ten imagined assets, done this way to keep it in sync with createValidAsset rather than using the factory directly.$this->createValidAsset(['model_id' => $model->id]);$this->createValidAsset(['model_id' => $model->id]);});