File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Yosemite/YosemiteTests/Stores Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,8 @@ private extension ReceiptStoreTests {
406406 totalTax: String = " " ,
407407 items: [ Yosemite . OrderItem ] = [ ] ,
408408 coupons: [ OrderCouponLine ] = [ ] ,
409- fees: [ Yosemite . OrderFeeLine ] = [ ] ) -> Networking . Order {
409+ fees: [ Yosemite . OrderFeeLine ] = [ ] ,
410+ taxes: [ Yosemite . OrderTaxLine ] = [ ] ) -> Networking . Order {
410411 Order ( siteID: 1234 ,
411412 orderID: 0 ,
412413 parentID: 0 ,
@@ -434,7 +435,7 @@ private extension ReceiptStoreTests {
434435 coupons: coupons,
435436 refunds: [ ] ,
436437 fees: fees,
437- taxes: [ makeOrderTaxLine ( totalShippingTax : shippingTax , totalTax : totalTax ) ] )
438+ taxes: taxes )
438439 }
439440
440441 func expectedDiscountLineDescription( ) -> String {
@@ -474,17 +475,4 @@ private extension ReceiptStoreTests {
474475 totalTax: " " ,
475476 attributes: [ ] )
476477 }
477-
478- func makeOrderTaxLine( totalShippingTax: String ,
479- totalTax: String ) -> Yosemite . OrderTaxLine {
480- . init( taxID: 123 ,
481- rateCode: " " ,
482- rateID: 1 ,
483- label: " State " ,
484- isCompoundTaxRate: false ,
485- totalTax: totalTax,
486- totalShippingTax: totalShippingTax,
487- ratePercent: 5.5 ,
488- attributes: [ ] )
489- }
490478}
You can’t perform that action at this time.
0 commit comments