abstract protected function SmsFrameworkMessageResultTestTrait::createMessageResult in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageResultTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageResultTestTrait::createMessageResult()
- 2.1.x tests/src/Functional/SmsFrameworkMessageResultTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageResultTestTrait::createMessageResult()
Creates a message result for testing.
Return value
\Drupal\sms\Message\SmsMessageResultInterface A result for testing.
9 calls to SmsFrameworkMessageResultTestTrait::createMessageResult()
- SmsFrameworkMessageResultTestTrait::testAddReport in tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php - Tests adding a report to the list of reports.
- SmsFrameworkMessageResultTestTrait::testCreditsBalance in tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php - Tests credits balance.
- SmsFrameworkMessageResultTestTrait::testCreditsBalanceIncorrectType in tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php - Tests credits balance set is wrong type.
- SmsFrameworkMessageResultTestTrait::testCreditsUsed in tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php - Tests credits used.
- SmsFrameworkMessageResultTestTrait::testCreditsUsedIncorrectType in tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php - Tests credits used set is wrong type.
2 methods override SmsFrameworkMessageResultTestTrait::createMessageResult()
- SmsFrameworkMessageResultEntityTest::createMessageResult in tests/
src/ Kernel/ SmsFrameworkMessageResultEntityTest.php - Creates a message result for testing.
- SmsFrameworkResultUnitTest::createMessageResult in tests/
src/ Unit/ Message/ SmsFrameworkResultUnitTest.php - Creates a message result for testing.
File
- tests/
src/ Functional/ SmsFrameworkMessageResultTestTrait.php, line 177
Class
- SmsFrameworkMessageResultTestTrait
- Provides common tests for SmsMessageResult object and entity classes.
Namespace
Drupal\Tests\sms\FunctionalCode
protected abstract function createMessageResult();