In \Drupal\commerce_order\Tests\OrderTest::testDeleteOrder we delete an order then load it to verify it has been deleted.

$order_exists = (bool) Order::load('commerce_order', $order->id());

The ::load is only expecting the order ID and not the entity type.

Comments

mglaman created an issue. See original summary.

harings_rob’s picture

Assigned: Unassigned » harings_rob
harings_rob’s picture

Status: Active » Needs review

  • bojanz committed dc8989d on 8.x-2.x authored by harings_rob
    Issue #2663652 by harings_rob: Fix Order::load in testDeleteOrder test
    
bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.