Skip to content

Commit 7746e0e

Browse files
committed
Update tests
1 parent 50334c8 commit 7746e0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/php/Jobs/CloneImagesOrVideosTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function testCloneImageVolume()
3232
$volume = $this->volume([
3333
'created_at' => '2022-11-09 14:37:00',
3434
'updated_at' => '2022-11-09 14:37:00',
35+
'attrs' => [
36+
'creating_async' => true,
37+
],
3538
])->fresh(); // Use fresh() to load even the null fields.
3639

3740
$copy = $volume->replicate();
@@ -63,6 +66,7 @@ public function testCloneImageVolume()
6366
$this->assertNotEquals($volume->created_at, $copy->created_at);
6467
$this->assertNotEquals($volume->updated_at, $copy->updated_at);
6568
$this->assertEmpty($copy->images()->first()->labels()->get());
69+
$this->assertFalse($copy->creating_async);
6670

6771
$ignore = ['id', 'created_at', 'updated_at'];
6872
$this->assertEquals(
@@ -78,6 +82,9 @@ public function testCloneVideoVolume()
7882
'created_at' => '2022-01-09 14:37:00',
7983
'updated_at' => '2022-01-09 14:37:00',
8084
'media_type_id' => MediaType::videoId(),
85+
'attrs' => [
86+
'creating_async' => true,
87+
],
8188
])->fresh(); // Use fresh() to load even the null fields.
8289
$copy = $volume->replicate();
8390
$copy->save();
@@ -104,6 +111,7 @@ public function testCloneVideoVolume()
104111
$copy = $project->volumes()->first();
105112

106113
$this->assertEmpty($copy->videos()->first()->labels()->get());
114+
$this->assertFalse($copy->creating_async);
107115
}
108116

109117
public function testCloneVolumeImages()

0 commit comments

Comments
 (0)