-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from php-enqueue/bundle-topic-subscriber-with…
…out-processor-name [bundle] add tests for the case where topic subscriber does not def p…
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ndle/Tests/Unit/DependencyInjection/Compiler/Mock/WithoutProcessorNameTopicSubscriber.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Enqueue\Bundle\Tests\Unit\DependencyInjection\Compiler\Mock; | ||
|
||
use Enqueue\Client\TopicSubscriberInterface; | ||
|
||
class WithoutProcessorNameTopicSubscriber implements TopicSubscriberInterface | ||
{ | ||
public static function getSubscribedTopics() | ||
{ | ||
return [ | ||
'without-processor-name' => [ | ||
'queueName' => 'a_queue_name', | ||
'queueNameHardcoded' => true, | ||
], | ||
]; | ||
} | ||
} |