Index: ios/chrome/browser/payments/cells/payments_text_item_unittest.mm |
diff --git a/ios/chrome/browser/payments/cells/payments_text_item_unittest.mm b/ios/chrome/browser/payments/cells/payments_text_item_unittest.mm |
index 64f66dc0bc3255a7390cd5af4e09add3972aba0b..9c4028023143a771a3544442cbecbf24be40c3d0 100644 |
--- a/ios/chrome/browser/payments/cells/payments_text_item_unittest.mm |
+++ b/ios/chrome/browser/payments/cells/payments_text_item_unittest.mm |
@@ -19,10 +19,12 @@ namespace { |
TEST(PaymentRequestPaymentsTextItemTest, TextLabelAndImage) { |
PaymentsTextItem* item = [[PaymentsTextItem alloc] initWithType:0]; |
- NSString* text = @"Lorem ipsum dolor sit amet"; |
+ NSString* text = @"Lorem ipsum"; |
+ NSString* detailText = @"Dolor sit amet"; |
UIImage* image = ios_internal::CollectionViewTestImage(); |
item.text = text; |
+ item.detailText = detailText; |
item.image = image; |
id cell = [[[item cellClass] alloc] init]; |
@@ -30,10 +32,12 @@ TEST(PaymentRequestPaymentsTextItemTest, TextLabelAndImage) { |
PaymentsTextCell* paymentsTextCell = cell; |
EXPECT_FALSE(paymentsTextCell.textLabel.text); |
+ EXPECT_FALSE(paymentsTextCell.detailTextLabel.text); |
EXPECT_FALSE(paymentsTextCell.imageView.image); |
[item configureCell:paymentsTextCell]; |
EXPECT_NSEQ(text, paymentsTextCell.textLabel.text); |
+ EXPECT_NSEQ(detailText, paymentsTextCell.detailTextLabel.text); |
EXPECT_NSEQ(image, paymentsTextCell.imageView.image); |
} |