You are here

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\Unit

Code

public function testSetStateWhenLocked() {
  $this->orderStatus
    ->setLocked(TRUE);
  $this->orderStatus
    ->setState('state');
}