resetTestingState example

'RequeueException', 'assertFalse', 0],
    ];
  }

  /** * Tests the ::processQueues() method. * * @covers ::processQueues * @dataProvider processQueuesTestData */
  public function testProcessQueues($item$message_logged_assertion$count_post_run) {
    $this->resetTestingState();
    $this->queue->createItem($item);
    $this->assertFalse($this->state->get('cron_test.message_logged'));
    $this->assertEquals(1, $this->queue->numberOfItems());
    $this->cron->run();
    $this->{$message_logged_assertion}($this->state->get('cron_test.message_logged'));
    $this->assertEquals($count_post_run$this->queue->numberOfItems());
  }

  /** * Verify that RequeueException causes an item to be processed multiple times. */
  
Home | Imprint | This part of the site doesn't use cookies.