@@ -34,10 +34,10 @@ protected function setUp(): void
3434 $ this ->batch ,
3535 );
3636
37- $ this ->queue ->setContainer (new \Illuminate \Container \Container () );
37+ $ this ->queue ->setContainer (new \Illuminate \Container \Container );
3838 }
3939
40- public function testPushProperlyPushesJobOntoDatabase ()
40+ public function test_push_properly_pushes_job_onto_database ()
4141 {
4242 $ this ->database ->shouldReceive ('table ' )->with ('table ' )->andReturn ($ query = m::mock ('StdClass ' ));
4343
@@ -59,11 +59,11 @@ public function testPushProperlyPushesJobOntoDatabase()
5959 $ this ->assertEquals (['jobId ' => 100 ], $ array ['parameters ' ]);
6060 });
6161
62- $ result = $ this ->queue ->push (new TestJob () );
62+ $ result = $ this ->queue ->push (new TestJob );
6363 $ this ->assertEquals (100 , $ result );
6464 }
6565
66- public function testPushProperlySanitizesJobName ()
66+ public function test_push_properly_sanitizes_job_name ()
6767 {
6868 $ this ->database ->shouldReceive ('table ' )->with ('table ' )->andReturn ($ query = m::mock ('StdClass ' ));
6969
@@ -76,10 +76,10 @@ public function testPushProperlySanitizesJobName()
7676 $ this ->assertEquals ('LukeWaite_LaravelQueueAwsBatch_Tests_TestJob ' , $ array ['jobName ' ]);
7777 });
7878
79- $ this ->queue ->push (new TestJob () );
79+ $ this ->queue ->push (new TestJob );
8080 }
8181
82- public function testPushIncludesContainerOverridesWhenJobSupportsOverrides ()
82+ public function test_push_includes_container_overrides_when_job_supports_overrides ()
8383 {
8484 $ overrides = ['vcpus ' => 2 ];
8585
@@ -95,7 +95,7 @@ public function testPushIncludesContainerOverridesWhenJobSupportsOverrides()
9595 $ this ->queue ->push (new TestJobWithOverrides ($ overrides ));
9696 }
9797
98- public function testGetJobById ()
98+ public function test_get_job_by_id ()
9999 {
100100 $ testDate = Carbon::create (2016 , 9 , 4 , 16 );
101101 Carbon::setTestNow ($ testDate );
@@ -119,7 +119,7 @@ public function testGetJobById()
119119 Carbon::setTestNow ();
120120 }
121121
122- public function testRelease ()
122+ public function test_release ()
123123 {
124124 $ this ->database ->shouldReceive ('table ' )->once ()->with ('table ' )->andReturn ($ table = m::mock ('StdClass ' ));
125125 $ table ->shouldReceive ('where ' )->once ()->with ('id ' , 4 )->andReturn ($ query = m::mock ('StdClass ' ));
@@ -128,7 +128,7 @@ public function testRelease()
128128 'reserved_at ' => null ,
129129 ])->andReturn (4 );
130130
131- $ job = new \stdClass () ;
131+ $ job = new \stdClass ;
132132 $ job ->payload = '{"job":"foo","data":["data"]} ' ;
133133 $ job ->id = 4 ;
134134 $ job ->queue = 'default ' ;
@@ -138,28 +138,28 @@ public function testRelease()
138138 $ this ->assertEquals (4 , $ result );
139139 }
140140
141- public function testPopThrowsException ()
141+ public function test_pop_throws_exception ()
142142 {
143143 $ this ->expectException (UnsupportedException::class);
144144 $ this ->expectExceptionMessage ('The BatchQueue does not support running via a regular worker. Instead, you should use the queue:batch-work command with a job id. ' );
145145
146146 $ this ->queue ->pop ('default ' );
147147 }
148148
149- public function testLaterThrowsException ()
149+ public function test_later_throws_exception ()
150150 {
151151 $ this ->expectException (UnsupportedException::class);
152152 $ this ->expectExceptionMessage ('The BatchQueue does not support the later() operation. ' );
153153
154154 $ this ->queue ->later (10 , 'default ' );
155155 }
156156
157- public function testReleaseWithDelayThrowsException ()
157+ public function test_release_with_delay_throws_exception ()
158158 {
159159 $ this ->expectException (UnsupportedException::class);
160160 $ this ->expectExceptionMessage ('The BatchJob does not support releasing back onto the queue with a delay ' );
161161
162- $ job = new \stdClass () ;
162+ $ job = new \stdClass ;
163163 $ job ->payload = '{"job":"foo","data":["data"]} ' ;
164164 $ job ->id = 4 ;
165165 $ job ->queue = 'default ' ;
@@ -176,9 +176,7 @@ class TestJob
176176
177177class TestJobWithOverrides implements JobContainerOverrides
178178{
179- public function __construct (private readonly array $ overrides )
180- {
181- }
179+ public function __construct (private readonly array $ overrides ) {}
182180
183181 public function getBatchContainerOverrides (): ?array
184182 {
0 commit comments