Skip to content

Commit

Permalink
Added supression of static method access.
Browse files Browse the repository at this point in the history
  • Loading branch information
Winfle committed Dec 7, 2018
1 parent 10fbf40 commit 1e2f3fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @magentoAppIsolation enabled
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class AssignCouponDataAfterOrderCustomerAssignTest extends \PHPUnit\Framework\TestCase
{
Expand Down Expand Up @@ -168,8 +169,8 @@ public function testOrderCancelingDecreasesCouponUsages()
*/
private function processOrder(Order $order)
{
$order->setState(\Magento\Sales\Model\Order::STATE_PROCESSING);
$order->setStatus(\Magento\Sales\Model\Order::STATE_PROCESSING);
$order->setState(Order::STATE_PROCESSING);
$order->setStatus(Order::STATE_PROCESSING);
return $this->orderRepository->save($order);
}

Expand Down

0 comments on commit 1e2f3fb

Please sign in to comment.