Rename the test method
This commit is contained in:
parent
c4abde6797
commit
bbca137a83
|
@ -32,7 +32,7 @@ final class PushToSocialMediaTest extends EntityKernelTestBase {
|
||||||
private QueueInterface $queue;
|
private QueueInterface $queue;
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function a_post_is_pushed_to_social_media_once_published(): void {
|
public function it_queues_a_post_when_it_is_created(): void {
|
||||||
$this->assertSame(0, $this->queue->numberOfItems());
|
$this->assertSame(0, $this->queue->numberOfItems());
|
||||||
|
|
||||||
$this->createNode([
|
$this->createNode([
|
||||||
|
@ -43,6 +43,7 @@ final class PushToSocialMediaTest extends EntityKernelTestBase {
|
||||||
$this->assertSame(1, $this->queue->numberOfItems());
|
$this->assertSame(1, $this->queue->numberOfItems());
|
||||||
|
|
||||||
$item = $this->queue->claimItem();
|
$item = $this->queue->claimItem();
|
||||||
|
|
||||||
/** @var Post $post */
|
/** @var Post $post */
|
||||||
$post = $item->data['post'];
|
$post = $item->data['post'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue