Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix check for RabbitMQ in tests
  • Loading branch information
michalsn committed Oct 10, 2025
commit 93f4c54565a0afc5f35971a45fd23c369ef30fc6
4 changes: 2 additions & 2 deletions tests/RabbitMQDelayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Handlers\RabbitMQHandler;
use CodeIgniter\Queue\QueuePushResult;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Connection\AMQPConnectionFactory;
use Tests\Support\Config\Queue as QueueConfig;
use Tests\Support\TestCase;
use Throwable;
Expand Down Expand Up @@ -161,6 +161,6 @@ public function testZeroDelayWorksImmediately(): void
*/
private function isRabbitMQAvailable(): bool
{
return class_exists(AMQPStreamConnection::class);
return class_exists(AMQPConnectionFactory::class);
}
}
4 changes: 2 additions & 2 deletions tests/RabbitMQHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use CodeIgniter\Queue\QueuePushResult;
use CodeIgniter\Test\ReflectionHelper;
use Exception;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Connection\AMQPConnectionFactory;
use Tests\Support\Config\Queue as QueueConfig;
use Tests\Support\TestCase;
use Throwable;
Expand Down Expand Up @@ -383,6 +383,6 @@ public function testJsonEncodeExceptionMethod(): void
*/
private function isRabbitMQAvailable(): bool
{
return class_exists(AMQPStreamConnection::class);
return class_exists(AMQPConnectionFactory::class);
}
}