@@ -32,6 +32,9 @@ public function testCloneImageVolume()
32
32
$ volume = $ this ->volume ([
33
33
'created_at ' => '2022-11-09 14:37:00 ' ,
34
34
'updated_at ' => '2022-11-09 14:37:00 ' ,
35
+ 'attrs ' => [
36
+ 'creating_async ' => true ,
37
+ ],
35
38
])->fresh (); // Use fresh() to load even the null fields.
36
39
37
40
$ copy = $ volume ->replicate ();
@@ -63,6 +66,7 @@ public function testCloneImageVolume()
63
66
$ this ->assertNotEquals ($ volume ->created_at , $ copy ->created_at );
64
67
$ this ->assertNotEquals ($ volume ->updated_at , $ copy ->updated_at );
65
68
$ this ->assertEmpty ($ copy ->images ()->first ()->labels ()->get ());
69
+ $ this ->assertFalse ($ copy ->creating_async );
66
70
67
71
$ ignore = ['id ' , 'created_at ' , 'updated_at ' ];
68
72
$ this ->assertEquals (
@@ -78,6 +82,9 @@ public function testCloneVideoVolume()
78
82
'created_at ' => '2022-01-09 14:37:00 ' ,
79
83
'updated_at ' => '2022-01-09 14:37:00 ' ,
80
84
'media_type_id ' => MediaType::videoId (),
85
+ 'attrs ' => [
86
+ 'creating_async ' => true ,
87
+ ],
81
88
])->fresh (); // Use fresh() to load even the null fields.
82
89
$ copy = $ volume ->replicate ();
83
90
$ copy ->save ();
@@ -104,6 +111,7 @@ public function testCloneVideoVolume()
104
111
$ copy = $ project ->volumes ()->first ();
105
112
106
113
$ this ->assertEmpty ($ copy ->videos ()->first ()->labels ()->get ());
114
+ $ this ->assertFalse ($ copy ->creating_async );
107
115
}
108
116
109
117
public function testCloneVolumeImages ()
0 commit comments