public function IntervalTest::testInvalidNumber in Commerce Core 8.2
Tests creating an interval with an invalid number.
::covers __construct.
File
- tests/
src/ Kernel/ IntervalTest.php, line 29
Class
- IntervalTest
- Tests the Interval class.
Namespace
Drupal\Tests\commerce\KernelCode
public function testInvalidNumber() {
$this
->expectException(\InvalidArgumentException::class);
$interval = new Interval('INVALID', 'month');
}