File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,14 @@ public function test_pending_batch_may_be_configured_and_dispatched()
41
41
//
42
42
})->catch (function () {
43
43
//
44
- })->allowFailures ()->onConnection ('test-connection ' )->onQueue ('test-queue ' );
44
+ })->allowFailures ()->onConnection ('test-connection ' )->onQueue ('test-queue ' )-> addOption ( ' extra-option ' , 123 ) ;
45
45
46
46
$ this ->assertSame ('test-connection ' , $ pendingBatch ->connection ());
47
47
$ this ->assertSame ('test-queue ' , $ pendingBatch ->queue ());
48
48
$ this ->assertCount (1 , $ pendingBatch ->thenCallbacks ());
49
49
$ this ->assertCount (1 , $ pendingBatch ->catchCallbacks ());
50
+ $ this ->assertArrayHasKey ('extra-option ' , $ pendingBatch ->options );
51
+ $ this ->assertSame (123 , $ pendingBatch ->options ['extra-option ' ]);
50
52
51
53
$ repository = m::mock (BatchRepository::class);
52
54
$ repository ->shouldReceive ('store ' )->once ()->with ($ pendingBatch )->andReturn ($ batch = m::mock (stdClass::class));
You can’t perform that action at this time.
0 commit comments