public function SmsFrameworkMessageResultEntityTest::testGetReportsNoReport in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkMessageResultEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageResultEntityTest::testGetReportsNoReport()
- 2.1.x tests/src/Kernel/SmsFrameworkMessageResultEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageResultEntityTest::testGetReportsNoReport()
Tests that getReports returns an empty array if no reports are set.
@covers ::getReports
File
- tests/
src/ Kernel/ SmsFrameworkMessageResultEntityTest.php, line 103
Class
- SmsFrameworkMessageResultEntityTest
- Tests the SMS message result entity.
Namespace
Drupal\Tests\sms\KernelCode
public function testGetReportsNoReport() {
$result = SmsMessageResult::create();
$this
->assertEquals([], $result
->getReports());
}