Skip to content

Commit 4f01d65

Browse files
committed
Merge branch 'feature/stats-revamp-latest-post-summary' into feature/stats-revamp-no-data
2 parents 88c3452 + 847b238 commit 4f01d65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WordPress/WordPressTest/LastPostStatsRecordValueTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ class LastPostStatsRecordValueTests: StatsTestCase {
101101
likesCount: 1,
102102
commentsCount: 2,
103103
viewsCount: 3,
104-
postID: 4)
104+
postID: 4,
105+
featuredImageURL: URL(string: "https://s.w.org/style/images/about/WordPress-logotype-wmark.png")!)
105106

106107
let blog = defaultBlog
107108

@@ -123,7 +124,8 @@ class LastPostStatsRecordValueTests: StatsTestCase {
123124
XCTAssertEqual(castedResults.likesCount, 1)
124125
XCTAssertEqual(castedResults.commentsCount, 2)
125126
XCTAssertEqual(castedResults.viewsCount, 3)
126-
XCTAssertEqual(castedResults.url, URL(string: "google.com") )
127+
XCTAssertEqual(castedResults.url, URL(string: "google.com"))
128+
XCTAssertEqual(castedResults.featuredImageURL, URL(string: "https://s.w.org/style/images/about/WordPress-logotype-wmark.png"))
127129
}
128130

129131
@discardableResult func createLastPostStatsRecordValue(parent: StatsRecord) -> LastPostStatsRecordValue {

0 commit comments

Comments
 (0)