File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,6 @@ class AssetModel extends SnipeModel
4646 protected $ injectUniqueIdentifier = true ;
4747 use ValidatingTrait;
4848
49- public function setEolAttribute ($ value )
50- {
51- if ($ value == '' ) {
52- $ value = 0 ;
53- }
54-
55- $ this ->attributes ['eol ' ] = $ value ;
56- }
57-
5849 /**
5950 * The attributes that are mass assignable.
6051 *
Original file line number Diff line number Diff line change 1010class AssetModelTest extends TestCase
1111{
1212 use InteractsWithSettings;
13-
14- public function testAnAssetModelZerosOutBlankEols ()
15- {
16- $ am = new AssetModel ;
17- $ am ->eol = '' ;
18- $ this ->assertTrue ($ am ->eol === 0 );
19- $ am ->eol = '4 ' ;
20- $ this ->assertTrue ($ am ->eol == 4 );
21- }
22-
13+
2314 public function testAnAssetModelContainsAssets ()
2415 {
2516 $ category = Category::factory ()->create ([
You can’t perform that action at this time.
0 commit comments