File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
tests/Integration/Database Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Illuminate \Contracts \Database \Eloquent \Castable ;
6
6
use Illuminate \Contracts \Database \Eloquent \CastsAttributes ;
7
7
use Illuminate \Contracts \Database \Eloquent \CastsInboundAttributes ;
8
- use Illuminate \Contracts \Database \Eloquent \HasCasterClass ;
9
8
use Illuminate \Database \Eloquent \Model ;
10
9
11
10
/**
@@ -121,13 +120,13 @@ public function testWithCastableInterface()
121
120
$ model = new TestEloquentModelWithCustomCast ;
122
121
123
122
$ model ->setRawAttributes ([
124
- 'value_object_with_caster ' => serialize (new ValueObject ('hello ' ))
123
+ 'value_object_with_caster ' => serialize (new ValueObject ('hello ' )),
125
124
]);
126
125
127
126
$ this ->assertInstanceOf (ValueObject::class, $ model ->value_object_with_caster );
128
127
129
128
$ model ->setRawAttributes ([
130
- 'value_object_caster_with_argument ' => null
129
+ 'value_object_caster_with_argument ' => null ,
131
130
]);
132
131
133
132
$ this ->assertEquals ('argument ' , $ model ->value_object_caster_with_argument );
You can’t perform that action at this time.
0 commit comments