publicfunctiontestCreateOrderSendsMail(): void { if(!$this->getContainer()->has(AccountOrderController::class)){ // ToDo: NEXT-16882 - Reactivate tests again
static::markTestSkipped('Order mail tests should be fixed without storefront in NEXT-16882'); }
// if we did not use an individual code we might have
// just used a global one or anything else, so just quit in this case.
if(!($individualCode instanceof PromotionIndividualCodeEntity)){ return; }
// set the code to be redeemed
// and assign all required meta data
// for later needs
$individualCode->setRedeemed( $item->getOrderId(), $customer->getCustomerId() ?? '', $customer->getFirstName() . ' ' . $customer->getLastName() );