public function RecurringOrderManagerTest::testStartRecurringWithInvalidState in Commerce Recurring Framework 8
@covers ::startRecurring
File
- tests/
src/ Kernel/ RecurringOrderManagerTest.php, line 178
Class
- RecurringOrderManagerTest
- @coversDefaultClass \Drupal\commerce_recurring\RecurringOrderManager @group commerce_recurring
Namespace
Drupal\Tests\commerce_recurring\KernelCode
public function testStartRecurringWithInvalidState() {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage('Unexpected subscription state "trial".');
$order = $this->recurringOrderManager
->startRecurring($this->trialSubscription);
}