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