You are here

protected function SmsFrameworkTestTrait::resetTestMessageReports in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 200

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', []);
}