File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
app/code/Magento/CheckoutAgreementsGraphQl
Model/Resolver/DataProvider
dev/tests/api-functional/testsuite/Magento/GraphQl/CheckoutAgreements/Api Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public function getData(): array
73
73
AgreementInterface::CONTENT_HEIGHT => $ checkoutAgreement ->getContentHeight (),
74
74
AgreementInterface::CHECKBOX_TEXT => $ checkoutAgreement ->getCheckboxText (),
75
75
AgreementInterface::IS_HTML => $ checkoutAgreement ->getIsHtml (),
76
+ AgreementInterface::MODE => $ checkoutAgreement ->getMode (),
76
77
];
77
78
}
78
79
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ type CheckoutAgreement @doc(description: "Defines all Checkout Agreement informa
12
12
content_height : String @doc (description : " Checkout Agreement content height" )
13
13
checkbox_text : String @doc (description : " Checkout Agreement checkbox tex" )
14
14
is_html : Boolean @doc (description : " Is Checkout Agreement content in HTML format" )
15
+ mode : Int @doc (description : " Is Checkout Agreement content in HTML format" )
15
16
}
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public function testGetActiveAgreement()
63
63
$ this ->assertEquals ('200px ' , $ agreements [0 ]['content_height ' ]);
64
64
$ this ->assertEquals ('Checkout agreement checkbox text. ' , $ agreements [0 ]['checkbox_text ' ]);
65
65
$ this ->assertEquals (true , $ agreements [0 ]['is_html ' ]);
66
+ $ this ->assertEquals (0 , $ agreements [0 ]['mode ' ]);
66
67
}
67
68
68
69
/**
@@ -89,6 +90,7 @@ public function testGetActiveAgreementOnSecondStore()
89
90
$ this ->assertEquals ('200px ' , $ agreements [0 ]['content_height ' ]);
90
91
$ this ->assertEquals ('Checkout agreement checkbox text. ' , $ agreements [0 ]['checkbox_text ' ]);
91
92
$ this ->assertEquals (true , $ agreements [0 ]['is_html ' ]);
93
+ $ this ->assertEquals (0 , $ agreements [0 ]['mode ' ]);
92
94
}
93
95
94
96
/**
@@ -153,6 +155,7 @@ private function getQuery(): string
153
155
content_height
154
156
checkbox_text
155
157
is_html
158
+ mode
156
159
}
157
160
}
158
161
QUERY ;
You can’t perform that action at this time.
0 commit comments