public function PaymentStatusTest::testId in Payment 8.2
@covers ::id @covers ::setId
File
- tests/
src/ Unit/ Entity/ PaymentStatusTest.php, line 68
Class
- PaymentStatusTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentStatus
Namespace
Drupal\Tests\payment\Unit\EntityCode
public function testId() {
$id = strtolower($this
->randomMachineName());
$this
->assertSame($this->sut, $this->sut
->setId($id));
$this
->assertSame($id, $this->sut
->id());
}