You are here

public function PaymentMethodConfigurationTest::testId in Payment 8.2

@covers ::setId @covers ::id

File

tests/src/Unit/Entity/PaymentMethodConfigurationTest.php, line 183

Class

PaymentMethodConfigurationTest
@coversDefaultClass \Drupal\payment\Entity\PaymentMethodConfiguration

Namespace

Drupal\Tests\payment\Unit\Entity

Code

public function testId() {
  $id = mt_rand();
  $this
    ->assertSame($this->sut, $this->sut
    ->setId($id));
  $this
    ->assertSame($id, $this->sut
    ->id());
}