Skip to content

Commit

Permalink
graphQl-309: added agreement mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Boyko committed May 8, 2019
1 parent cc5e217 commit 7305a43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function getData(): array
AgreementInterface::CONTENT_HEIGHT => $checkoutAgreement->getContentHeight(),
AgreementInterface::CHECKBOX_TEXT => $checkoutAgreement->getCheckboxText(),
AgreementInterface::IS_HTML => $checkoutAgreement->getIsHtml(),
AgreementInterface::MODE => $checkoutAgreement->getMode(),
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ type CheckoutAgreement @doc(description: "Defines all Checkout Agreement informa
content_height: String @doc(description: "Checkout Agreement content height")
checkbox_text: String @doc(description: "Checkout Agreement checkbox tex")
is_html: Boolean @doc(description: "Is Checkout Agreement content in HTML format")
mode: Int @doc(description: "Is Checkout Agreement content in HTML format")
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function testGetActiveAgreement()
$this->assertEquals('200px', $agreements[0]['content_height']);
$this->assertEquals('Checkout agreement checkbox text.', $agreements[0]['checkbox_text']);
$this->assertEquals(true, $agreements[0]['is_html']);
$this->assertEquals(0, $agreements[0]['mode']);
}

/**
Expand All @@ -89,6 +90,7 @@ public function testGetActiveAgreementOnSecondStore()
$this->assertEquals('200px', $agreements[0]['content_height']);
$this->assertEquals('Checkout agreement checkbox text.', $agreements[0]['checkbox_text']);
$this->assertEquals(true, $agreements[0]['is_html']);
$this->assertEquals(0, $agreements[0]['mode']);
}

/**
Expand Down Expand Up @@ -153,6 +155,7 @@ private function getQuery(): string
content_height
checkbox_text
is_html
mode
}
}
QUERY;
Expand Down

0 comments on commit 7305a43

Please sign in to comment.