Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Nov 6, 2023
1 parent 6364b50 commit d5de113
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions WordPress/Classes/ViewRelated/Pages/PageMenuViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class PageMenuViewModelTests: CoreDataTestCase {
[.view],
[.moveToDraft, .duplicate],
[.blaze],
[.setParent, .setHomepage, .setPostsPage],
[.setParent, .setHomepage, .setPostsPage, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -53,7 +53,7 @@ final class PageMenuViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.moveToDraft, .duplicate],
[.setParent, .setHomepage, .setPostsPage],
[.setParent, .setHomepage, .setPostsPage, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -80,7 +80,7 @@ final class PageMenuViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.moveToDraft, .duplicate],
[.setParent, .setHomepage, .setPostsPage],
[.setParent, .setHomepage, .setPostsPage, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand Down Expand Up @@ -108,7 +108,7 @@ final class PageMenuViewModelTests: CoreDataTestCase {
[.view],
[.duplicate],
[.blaze],
[.setParent, .setPostsPage]
[.setParent, .setPostsPage, .settings]
]
expect(buttons).to(equal(expectedButtons))
}
Expand All @@ -135,7 +135,7 @@ final class PageMenuViewModelTests: CoreDataTestCase {
[.view],
[.moveToDraft, .duplicate],
[.blaze],
[.setParent, .setHomepage, .setRegularPage],
[.setParent, .setHomepage, .setRegularPage, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PostCardStatusViewModelTests: CoreDataTestCase {
[.view],
[.moveToDraft, .duplicate, .share],
[.blaze],
[.stats, .comments],
[.stats, .comments, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -41,7 +41,7 @@ class PostCardStatusViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.moveToDraft, .duplicate, .share],
[.stats, .comments],
[.stats, .comments, .settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -62,6 +62,7 @@ class PostCardStatusViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.moveToDraft, .duplicate, .share],
[.settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -81,6 +82,7 @@ class PostCardStatusViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.duplicate, .publish],
[.settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand All @@ -100,6 +102,7 @@ class PostCardStatusViewModelTests: CoreDataTestCase {
let expectedButtons: [[AbstractPostButton]] = [
[.view],
[.moveToDraft],
[.settings],
[.trash]
]
expect(buttons).to(equal(expectedButtons))
Expand Down

0 comments on commit d5de113

Please sign in to comment.