You are here

public function RecurringOrderManagerTest::testStartTrialWithInvalidState in Commerce Recurring Framework 8

@covers ::startTrial

File

tests/src/Kernel/RecurringOrderManagerTest.php, line 85

Class

RecurringOrderManagerTest
@coversDefaultClass \Drupal\commerce_recurring\RecurringOrderManager @group commerce_recurring

Namespace

Drupal\Tests\commerce_recurring\Kernel

Code

public function testStartTrialWithInvalidState() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('Unexpected subscription state "active".');
  $order = $this->recurringOrderManager
    ->startTrial($this->activeSubscription);
}