public function OrderStatusTest::testSetStateWhenLocked in Ubercart 8.4
Tests that setState() throws an exception when the status is locked.
@covers ::setState @expectedException \LogicException
File
- uc_order/
tests/ src/ Unit/ OrderStatusTest.php, line 35
Class
- OrderStatusTest
- @coversDefaultClass \Drupal\uc_order\Entity\OrderStatus
Namespace
Drupal\Tests\uc_order\UnitCode
public function testSetStateWhenLocked() {
$this->orderStatus
->setLocked(TRUE);
$this->orderStatus
->setState('state');
}