mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Notes and style cleanups
This commit is contained in:
parent
9520ccae47
commit
3e7fbb02b7
|
@ -22,7 +22,6 @@ class AssetsCest
|
|||
|
||||
public 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.
|
||||
|
|
|
@ -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]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue