diff --git a/tests/Bus/BusBatchTest.php b/tests/Bus/BusBatchTest.php index 69c7cfa0160e..dee89fc6a136 100644 --- a/tests/Bus/BusBatchTest.php +++ b/tests/Bus/BusBatchTest.php @@ -379,7 +379,7 @@ public function test_options_unserialize_on_postgres() 'failed_jobs' => '', 'failed_job_ids' => '[]', 'options' => base64_encode(serialize($options)), - 'created_at' => now(), + 'created_at' => null, 'cancelled_at' => null, 'finished_at' => null, ]); @@ -387,7 +387,7 @@ public function test_options_unserialize_on_postgres() $batch = (new DatabaseBatchRepository($factory, $connection, 'job_batches')); $factory->shouldReceive('make') - ->withSomeOfArgs($batch, '', '', '', '', '', '', [1, 2]); + ->withSomeOfArgs($batch, '', '', '', '', '', '', $options); $batch->find(1); }