You are here

public function BaseTest::testThrottlingInterval3hLastRun1hAgo in TMGMT Extension Suite 8.2

File

tests/src/Kernel/BaseTest.php, line 83

Class

BaseTest
TMGMT Extension Suit kernel test base class.

Namespace

Drupal\Tests\tmgmt_extension_suit\Kernel

Code

public function testThrottlingInterval3hLastRun1hAgo() {
  $this->uniqueQueueItemMock
    ->expects($this
    ->never())
    ->method('addItem');
  \Drupal::state()
    ->set('tmgmt_extension_suit.check_status_cron_last', $this->requestTime - 3600);
  tmgmt_extension_suit_cron();
}