Default value is out_invoice aka an invoice of type sale. However here we would like to test invoices of type purchase. Otherwise extending tests for specific purchase-related invoice code is not possible. This is done using the magical context key type. Closes #15886