You are here

public function ScheduledChangeTest::testScheduledChange in Commerce Recurring Framework 8

@covers ::__construct @covers ::getFieldName @covers ::getValue @covers ::getCreatedTime

File

tests/src/Kernel/ScheduledChangeTest.php, line 20

Class

ScheduledChangeTest
@coversDefaultClass \Drupal\commerce_recurring\ScheduledChange @group commerce_recurring

Namespace

Drupal\Tests\commerce_recurring\Kernel

Code

public function testScheduledChange() {
  $created = time();
  $scheduled_change = new ScheduledChange('state', 'canceled', $created);
  $this
    ->assertEquals('state', $scheduled_change
    ->getFieldName());
  $this
    ->assertEquals('canceled', $scheduled_change
    ->getValue());
  $this
    ->assertEquals($created, $scheduled_change
    ->getCreatedTime());
}