Skip to content

Commit e006e25

Browse files
committed
Update name of test cases.
1 parent 8cc61da commit e006e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/WooCommerceTests/ViewModels/CardPresentPayments/CollectOrderPaymentUseCaseTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class CollectOrderPaymentUseCaseTests: XCTestCase {
4747
XCTAssertFalse(analyticsProvider.receivedEvents.contains("card_present_collect_payment_tapped"))
4848
}
4949

50-
func test_collectPayment_collectPaymentTapped_event() throws {
50+
func test_collectPayment_tracks_collectPaymentTapped_event() throws {
5151
// When
5252
mockCardPresentPaymentActions()
5353
useCase.collectPayment(backButtonTitle: "", onCollect: { _ in }, onCompleted: {})
@@ -60,7 +60,7 @@ final class CollectOrderPaymentUseCaseTests: XCTestCase {
6060
XCTAssertEqual(eventProperties["plugin_slug"] as? String, Mocks.paymentGatewayAccount)
6161
}
6262

63-
func test_cancelling_readerIsReady_tracks_collectPaymentCanceled_event() throws {
63+
func test_cancelling_readerIsReady_alert_tracks_collectPaymentCanceled_event() throws {
6464
// When
6565
mockCardPresentPaymentActions()
6666
useCase.collectPayment(backButtonTitle: "", onCollect: { _ in }, onCompleted: {})
@@ -74,7 +74,7 @@ final class CollectOrderPaymentUseCaseTests: XCTestCase {
7474
XCTAssertEqual(eventProperties["plugin_slug"] as? String, Mocks.paymentGatewayAccount)
7575
}
7676

77-
func test_cancelling_readerIsReady_dispatches_cancel_action() throws {
77+
func test_cancelling_readerIsReady_alert_dispatches_cancel_action() throws {
7878
// Given
7979
assertEmpty(stores.receivedActions)
8080

0 commit comments

Comments
 (0)