Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 79440d5

Browse files
committed
Integration test
1 parent 6bf1e64 commit 79440d5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

example/src/androidTest/java/org/wordpress/android/fluxc/mocked/MockedStack_WCOrdersTest.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,15 @@ class MockedStack_WCOrdersTest : MockedStack_Base() {
568568
)
569569
}
570570

571+
@Test
572+
fun testSendOrderReceipt() = runBlocking {
573+
interceptor.respondWith("wc-order-action-send-order-details-success.json")
574+
575+
val result = orderRestClient.sendOrderReceipt(siteModel, 0)
576+
577+
assertFalse(result.isError)
578+
}
579+
571580
@Suppress("unused")
572581
@Subscribe
573582
fun onAction(action: Action<*>) {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"data": {
3+
"message": "Order details email sent to customer."
4+
}
5+
}

0 commit comments

Comments
 (0)