getCustomerOrNew(static::$info->hashcode); dump(static::$info->postcode); $arcadiaOrderMail = new ArcadiaMailDefault([ 'email' => static::$customer->email, 'firstname' => static::$info->firstname, 'lastname' => static::$info->lastname, 'phone' => static::$info->phone, 'address' => static::$info->address, 'address2' => static::$info->address2, 'city' => static::$info->city, 'postcode' => static::$info->postcode, 'operation' => 16, 'label_type_support' => 'Send Departaimants', 'order_date' => \date('Y/m/d H:i:s'), 'state_order' => ArcadiaOrderType::cb()->value, 'support_code' => 32, 'label_type_support' => 'Fond carte Aimanté', 'order_num' => 23, 'package_unit_weight' => 200, ]); $this->assertTrue($arcadiaOrderMail->send($customer)); } public function testArcadiaSendOrderGame() { $api = new CrmApiV2(); $customer = $api->getCustomerOrNew(static::$info->hashcode); dump(static::$info->postcode); $arcadiaOrderMail = new ArcadiaMailGame([ 'email' => static::$customer->email, 'firstname' => static::$info->firstname, 'lastname' => static::$info->lastname, 'phone' => static::$info->phone, 'address' => static::$info->address, 'address2' => static::$info->address2, 'city' => static::$info->city, 'postcode' => static::$info->postcode, 'operation' => 16, 'order_date' => date('Y/m/d H:i:s'), 'support_code' => 32, 'label_type_support' => 'Jeux Reghalal', 'code_unique' => (string)Str::uuid(), 'code_on_pack' => 'anystring' ]); $this->assertTrue($arcadiaOrderMail->send($customer)); } }