diff --git a/app/Models/AssetModel.php b/app/Models/AssetModel.php index d0e47e1cf1..c5fb9284aa 100755 --- a/app/Models/AssetModel.php +++ b/app/Models/AssetModel.php @@ -46,15 +46,6 @@ class AssetModel extends SnipeModel protected $injectUniqueIdentifier = true; use ValidatingTrait; - public function setEolAttribute($value) - { - if ($value == '') { - $value = 0; - } - - $this->attributes['eol'] = $value; - } - /** * The attributes that are mass assignable. * diff --git a/tests/Unit/AssetModelTest.php b/tests/Unit/AssetModelTest.php index 845e7fce90..aec8edf692 100644 --- a/tests/Unit/AssetModelTest.php +++ b/tests/Unit/AssetModelTest.php @@ -10,16 +10,7 @@ use Tests\TestCase; class AssetModelTest extends TestCase { use InteractsWithSettings; - - public function testAnAssetModelZerosOutBlankEols() - { - $am = new AssetModel; - $am->eol = ''; - $this->assertTrue($am->eol === 0); - $am->eol = '4'; - $this->assertTrue($am->eol == 4); - } - + public function testAnAssetModelContainsAssets() { $category = Category::factory()->create([