Skip to content

Commit 1032c83

Browse files
committed
Fix compatibility with Laravel 12.34
1 parent f90061b commit 1032c83

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

tests/Functional/RabbitMQQueueTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,50 @@ public function testConnection(): void
2424
public function testConfigRerouteFailed(): void
2525
{
2626
$queue = $this->connection();
27-
$this->assertFalse($this->callProperty($queue, 'config')->isRerouteFailed());
27+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isRerouteFailed());
2828

2929
$queue = $this->connection('rabbitmq-with-options');
30-
$this->assertTrue($this->callProperty($queue, 'config')->isRerouteFailed());
30+
$this->assertTrue($this->callProperty($queue, 'rabbitMQConfig')->isRerouteFailed());
3131

3232
$queue = $this->connection('rabbitmq-with-options-empty');
33-
$this->assertFalse($this->callProperty($queue, 'config')->isRerouteFailed());
33+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isRerouteFailed());
3434

3535
$queue = $this->connection('rabbitmq-with-options-null');
36-
$this->assertFalse($this->callProperty($queue, 'config')->isRerouteFailed());
36+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isRerouteFailed());
3737
}
3838

3939
public function testConfigPrioritizeDelayed(): void
4040
{
4141
$queue = $this->connection();
42-
$this->assertFalse($this->callProperty($queue, 'config')->isPrioritizeDelayed());
42+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isPrioritizeDelayed());
4343

4444
$queue = $this->connection('rabbitmq-with-options');
45-
$this->assertTrue($this->callProperty($queue, 'config')->isPrioritizeDelayed());
45+
$this->assertTrue($this->callProperty($queue, 'rabbitMQConfig')->isPrioritizeDelayed());
4646

4747
$queue = $this->connection('rabbitmq-with-options-empty');
48-
$this->assertFalse($this->callProperty($queue, 'config')->isPrioritizeDelayed());
48+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isPrioritizeDelayed());
4949

5050
$queue = $this->connection('rabbitmq-with-options-null');
51-
$this->assertFalse($this->callProperty($queue, 'config')->isPrioritizeDelayed());
51+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isPrioritizeDelayed());
5252
}
5353

5454
public function testQueueMaxPriority(): void
5555
{
5656
$queue = $this->connection();
57-
$this->assertIsInt($this->callProperty($queue, 'config')->getQueueMaxPriority());
58-
$this->assertSame(2, $this->callProperty($queue, 'config')->getQueueMaxPriority());
57+
$this->assertIsInt($this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
58+
$this->assertSame(2, $this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
5959

6060
$queue = $this->connection('rabbitmq-with-options');
61-
$this->assertIsInt($this->callProperty($queue, 'config')->getQueueMaxPriority());
62-
$this->assertSame(20, $this->callProperty($queue, 'config')->getQueueMaxPriority());
61+
$this->assertIsInt($this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
62+
$this->assertSame(20, $this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
6363

6464
$queue = $this->connection('rabbitmq-with-options-empty');
65-
$this->assertIsInt($this->callProperty($queue, 'config')->getQueueMaxPriority());
66-
$this->assertSame(2, $this->callProperty($queue, 'config')->getQueueMaxPriority());
65+
$this->assertIsInt($this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
66+
$this->assertSame(2, $this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
6767

6868
$queue = $this->connection('rabbitmq-with-options-null');
69-
$this->assertIsInt($this->callProperty($queue, 'config')->getQueueMaxPriority());
70-
$this->assertSame(2, $this->callProperty($queue, 'config')->getQueueMaxPriority());
69+
$this->assertIsInt($this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
70+
$this->assertSame(2, $this->callProperty($queue, 'rabbitMQConfig')->getQueueMaxPriority());
7171
}
7272

7373
public function testConfigExchangeType(): void
@@ -88,7 +88,7 @@ public function testConfigExchangeType(): void
8888
$this->assertSame(AMQPExchangeType::DIRECT, $this->callMethod($queue, 'getExchangeType'));
8989

9090
//testing an unkown type with a default
91-
$this->callProperty($queue, 'config')->setExchangeType('unknown');
91+
$this->callProperty($queue, 'rabbitMQConfig')->setExchangeType('unknown');
9292
$this->assertSame(AMQPExchangeType::DIRECT, $this->callMethod($queue, 'getExchangeType'));
9393
}
9494

@@ -161,7 +161,7 @@ public function testRoutingKey(): void
161161

162162
$queue = $this->connection('rabbitmq-with-options-null');
163163
$this->assertSame('test', $this->callMethod($queue, 'getRoutingKey', ['test']));
164-
$this->callProperty($queue, 'config')->setExchangeRoutingKey('.an.alternate.routing-key');
164+
$this->callProperty($queue, 'rabbitMQConfig')->setExchangeRoutingKey('.an.alternate.routing-key');
165165
$this->assertSame('an.alternate.routing-key', $this->callMethod($queue, 'getRoutingKey', ['test']));
166166
}
167167

@@ -180,26 +180,26 @@ public function testFailedRoutingKey(): void
180180

181181
$queue = $this->connection('rabbitmq-with-options-null');
182182
$this->assertSame('test.failed', $this->callMethod($queue, 'getFailedRoutingKey', ['test']));
183-
$this->callProperty($queue, 'config')->setFailedRoutingKey('.an.alternate.routing-key');
183+
$this->callProperty($queue, 'rabbitMQConfig')->setFailedRoutingKey('.an.alternate.routing-key');
184184
$this->assertSame('an.alternate.routing-key', $this->callMethod($queue, 'getFailedRoutingKey', ['test']));
185185
}
186186

187187
public function testConfigQuorum(): void
188188
{
189189
$queue = $this->connection();
190-
$this->assertFalse($this->callProperty($queue, 'config')->isQuorum());
190+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isQuorum());
191191

192192
$queue = $this->connection('rabbitmq-with-options');
193-
$this->assertFalse($this->callProperty($queue, 'config')->isQuorum());
193+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isQuorum());
194194

195195
$queue = $this->connection('rabbitmq-with-options-empty');
196-
$this->assertFalse($this->callProperty($queue, 'config')->isQuorum());
196+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isQuorum());
197197

198198
$queue = $this->connection('rabbitmq-with-options-null');
199-
$this->assertFalse($this->callProperty($queue, 'config')->isQuorum());
199+
$this->assertFalse($this->callProperty($queue, 'rabbitMQConfig')->isQuorum());
200200

201201
$queue = $this->connection('rabbitmq-with-quorum-options');
202-
$this->assertTrue($this->callProperty($queue, 'config')->isQuorum());
202+
$this->assertTrue($this->callProperty($queue, 'rabbitMQConfig')->isQuorum());
203203
}
204204

205205
public function testDeclareDeleteExchange(): void

0 commit comments

Comments
 (0)