Skip to content

Commit 35a3999

Browse files
committed
Load model from the ContextManager bundle in the unit tests
1 parent 65c53ae commit 35a3999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/WordPressTest/ContextManagerTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ class ContextManagerTests: XCTestCase {
445445
}
446446

447447
fileprivate func urlForModelName(_ name: String) -> URL? {
448-
let bundle = Bundle.main
448+
let bundle = Bundle(for: ContextManager.self)
449449
var url = bundle.url(forResource: name, withExtension: "mom")
450450

451451
if url == nil {

0 commit comments

Comments
 (0)