Skip to content

Commit

Permalink
Integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
kidinov committed Nov 28, 2024
1 parent 6bf1e64 commit 79440d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,15 @@ class MockedStack_WCOrdersTest : MockedStack_Base() {
)
}

@Test
fun testSendOrderReceipt() = runBlocking {
interceptor.respondWith("wc-order-action-send-order-details-success.json")

val result = orderRestClient.sendOrderReceipt(siteModel, 0)

assertFalse(result.isError)
}

@Suppress("unused")
@Subscribe
fun onAction(action: Action<*>) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"data": {
"message": "Order details email sent to customer."
}
}

0 comments on commit 79440d5

Please sign in to comment.