Skip to content

Commit 2f97895

Browse files
authored
chore: fix data provider name and order by cs-fix (#64)
1 parent 00841c4 commit 2f97895

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/PushAndPopWithDelayTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,7 @@ protected function setUp(): void
3838
$this->config = config(QueueConfig::class);
3939
}
4040

41-
public static function handlerProvider(): iterable
42-
{
43-
return [
44-
[
45-
'database', // name
46-
'CodeIgniter\Queue\Handlers\DatabaseHandler', // class
47-
],
48-
[
49-
'redis',
50-
'CodeIgniter\Queue\Handlers\RedisHandler',
51-
],
52-
[
53-
'predis',
54-
'CodeIgniter\Queue\Handlers\PredisHandler',
55-
],
56-
];
57-
}
58-
59-
#[DataProvider('handlerProvider')]
41+
#[DataProvider('providePushAndPopWithDelay')]
6042
public function testPushAndPopWithDelay(string $name, string $class): void
6143
{
6244
Time::setTestNow('2023-12-29 14:15:16');
@@ -100,4 +82,22 @@ public function testPushAndPopWithDelay(string $name, string $class): void
10082
$payload = ['job' => 'success', 'data' => ['key1' => 'value1'], 'metadata' => []];
10183
$this->assertSame($payload, $result->payload);
10284
}
85+
86+
public static function providePushAndPopWithDelay(): iterable
87+
{
88+
return [
89+
[
90+
'database', // name
91+
'CodeIgniter\Queue\Handlers\DatabaseHandler', // class
92+
],
93+
[
94+
'redis',
95+
'CodeIgniter\Queue\Handlers\RedisHandler',
96+
],
97+
[
98+
'predis',
99+
'CodeIgniter\Queue\Handlers\PredisHandler',
100+
],
101+
];
102+
}
103103
}

0 commit comments

Comments
 (0)