Update queue name
This commit is contained in:
parent
e9b74686a3
commit
e50a91dc30
|
@ -40,7 +40,7 @@ final class PushPostToSocialMediaOnceItIsPublished implements EventSubscriberInt
|
|||
return;
|
||||
}
|
||||
|
||||
$queue = $this->queueFactory->get('opdavies_blog_push_post_to_social_media');
|
||||
$queue = $this->queueFactory->get('opdavies_blog.push_post_to_social_media');
|
||||
$queue->createQueue();
|
||||
|
||||
$queue->createItem([
|
||||
|
|
|
@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
|
||||
/**
|
||||
* @QueueWorker(
|
||||
* id = "opdavies_blog_push_post_to_social_media",
|
||||
* id = "opdavies_blog.push_post_to_social_media",
|
||||
* title = "Push a blog post to social media",
|
||||
* cron = {"time": 30}
|
||||
* )
|
||||
|
|
|
@ -71,7 +71,7 @@ final class PushToSocialMediaTest extends EntityKernelTestBase {
|
|||
$this->installSchema('node', ['node_access']);
|
||||
|
||||
$this->queue = $this->container->get('queue')
|
||||
->get('opdavies_blog_push_post_to_social_media');
|
||||
->get('opdavies_blog.push_post_to_social_media');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue