You are here

protected function SmsFrameworkTestTrait::resetTestMessageReports in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkTestTrait::resetTestMessageReports()
  2. 2.1.x tests/src/Functional/SmsFrameworkTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkTestTrait::resetTestMessageReports()

Resets the SMS reports stored in memory by 'Memory' gateway.

File

tests/src/Functional/SmsFrameworkTestTrait.php, line 199

Class

SmsFrameworkTestTrait
Shared SMS Framework helpers for kernel and web tests.

Namespace

Drupal\Tests\sms\Functional

Code

protected function resetTestMessageReports() {
  \Drupal::state()
    ->set('sms_test_gateway.memory.report', []);
}