Exemplo n.º 1
0
 /**
  * @depends testCreate
  *
  * @param OrderModel $order
  */
 public function testModelUpdateStatusNotPaidWithHelpers(OrderModel $order)
 {
     $order->setNotPaid();
     $this->assertEquals($order->getStatusId(), OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_NOT_PAID)->getId());
     $this->assertTrue($order->isNotPaid());
 }