Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e533cf7

Browse files
Make comments match the current use case better
1 parent 58264b0 commit e533cf7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/QueueableActionTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,12 @@ public function middleware(): array
290290

291291
$actionJob = new ActionJob($action, [$user]);
292292

293-
// simulate action job is push to the queue
293+
// simulate action job is pushed to the queue
294294
$serialized = serialize($actionJob);
295295

296-
// simulate action job is handled by a queue worker
296+
// deserialize to assert which properties were loaded
297297
$unSerialized = unserialize($serialized);
298298

299-
// the model should be deserialized by pulling the latest instance from the database
300299
$unSerializedModel = $unSerialized->parameters()[0];
301300

302301
expect($unSerializedModel)->toBeInstanceOf(ModelSerializationUser::class)
@@ -324,19 +323,18 @@ function (
324323

325324
$action = app($actionClass);
326325

327-
// make sure relation was loaded before passing to action
326+
// make sure relations were loaded before passing to action
328327
$user->load('children');
329328
$child->load('children');
330329

331330
$actionJob = new ActionJob($action, [collect([$user, $child])]);
332331

333-
// simulate action job is push to the queue
332+
// simulate action job is pushed to the queue
334333
$serialized = serialize($actionJob);
335334

336-
// simulate action job is handled by a queue worker
335+
// deserialize to assert which properties were loaded
337336
$unSerialized = unserialize($serialized);
338337

339-
// the model should be deserialized by pulling the latest instance from the database
340338
$unSerializedModelCollection = $unSerialized->parameters()[0];
341339

342340
expect($unSerializedModelCollection)->toBeInstanceOf(Collection::class)

0 commit comments

Comments
 (0)