public function SmsFrameworkMessageEntityTest::testUid in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkMessageEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageEntityTest::testUid()
- 2.1.x tests/src/Kernel/SmsFrameworkMessageEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageEntityTest::testUid()
File
- tests/
src/ Kernel/ SmsFrameworkMessageEntityTest.php, line 77
Class
- SmsFrameworkMessageEntityTest
- Tests SMS message entity.
Namespace
Drupal\Tests\sms\KernelCode
public function testUid() {
// User must exist or setUid will throw an exception.
User::create([
'uid' => 22,
'name' => 'user',
])
->save();
$this
->originalUid();
}