From 9557bb5487bd282e221f9305cd8c616700eba68c Mon Sep 17 00:00:00 2001 From: Romeo Sommerfeld <55324905+rsommerfeld@users.noreply.github.com> Date: Sat, 26 Jun 2021 09:22:53 +0200 Subject: [PATCH] Rename UserStore (#406) * rename UserStore, add some tests and rename linter method * fix failed rename operation on squeaks behalf --- .../TCCCore.class/instance/initialize.st | 2 +- .../TCCCore.class/methodProperties.json | 2 +- .../README.md | 0 .../class/newWith..st | 0 .../instance/core..st | 0 .../instance/core.st | 0 .../instance/getUserFor..st | 0 .../instance/requestUserFor.with..st | 2 +- .../methodProperties.json | 2 +- .../properties.json | 2 +- .../instance/testCanRequestUser.st | 19 +++++++++++++++++++ .../TCTCAPITests.class/methodProperties.json | 1 + .../instance/partialGroupMembersTestFor..st | 2 +- .../TCTCCoreTests.class/methodProperties.json | 2 +- .../instance/testCachesRequests.st | 16 ++++++++++++++++ .../methodProperties.json | 1 + .../README.md | 0 .../instance/testCachesRequests.st | 17 +++++++++++++++++ .../instance/testGetUserFor.st | 12 ++++++++++++ .../methodProperties.json | 6 ++++++ .../properties.json | 2 +- .../instance/testGetUserFor.st | 15 --------------- .../methodProperties.json | 5 ----- ...t => testMethodNoConsecutiveEmptyLines.st} | 2 +- .../methodProperties.json | 2 +- .../{mockUserPromises.st => mockUserStore.st} | 4 ++-- .../TCTMMocks.class/methodProperties.json | 2 +- .../TCTUTestCase.class/instance/setUp.st | 2 +- .../TCTUTestCase.class/methodProperties.json | 2 +- 29 files changed, 87 insertions(+), 35 deletions(-) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/README.md (100%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/class/newWith..st (100%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/instance/core..st (100%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/instance/core.st (100%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/instance/getUserFor..st (100%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/instance/requestUserFor.with..st (78%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/methodProperties.json (77%) rename packages/TelegramClient-Core.package/{TCCUsers.class => TCCUserStore.class}/properties.json (89%) create mode 100644 packages/TelegramClientTests-Core.package/TCTCAPITests.class/instance/testCanRequestUser.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/instance/testCachesRequests.st rename packages/TelegramClientTests-Core.package/{TCTCUsersTests.class => TCTCUserStoreTests.class}/README.md (100%) create mode 100644 packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testCachesRequests.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testGetUserFor.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/methodProperties.json rename packages/TelegramClientTests-Core.package/{TCTCUsersTests.class => TCTCUserStoreTests.class}/properties.json (87%) delete mode 100644 packages/TelegramClientTests-Core.package/TCTCUsersTests.class/instance/testGetUserFor.st delete mode 100644 packages/TelegramClientTests-Core.package/TCTCUsersTests.class/methodProperties.json rename packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/{testMethodNotTooManyEmptyLines.st => testMethodNoConsecutiveEmptyLines.st} (86%) rename packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/{mockUserPromises.st => mockUserStore.st} (77%) diff --git a/packages/TelegramClient-Core.package/TCCCore.class/instance/initialize.st b/packages/TelegramClient-Core.package/TCCCore.class/instance/initialize.st index 67a56df1f..1263b3bf3 100644 --- a/packages/TelegramClient-Core.package/TCCCore.class/instance/initialize.st +++ b/packages/TelegramClient-Core.package/TCCCore.class/instance/initialize.st @@ -7,7 +7,7 @@ initialize chats: TCCChats newWithDefaultSorting; loggedInUserID: 0; pendingRequests: Dictionary new; - users: (TCCUsers newWith: self); + users: (TCCUserStore newWith: self); imageStore: (TCCImageStore newWith: self); callbackCounter: 0. diff --git a/packages/TelegramClient-Core.package/TCCCore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCCore.class/methodProperties.json index ede0b8a67..909f76d39 100644 --- a/packages/TelegramClient-Core.package/TCCCore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCCore.class/methodProperties.json @@ -24,7 +24,7 @@ "handlePendingEvent:" : "5/30/2021 12:11:04", "imageStore" : "pk 6/19/2021 17:15", "imageStore:" : "TR 6/22/2021 09:33", - "initialize" : "pk 6/19/2021 17:21", + "initialize" : "RS 6/23/2021 15:29", "initializeHandlers" : "js 8/1/2020 18:09", "isClientAlive" : "js 5/28/2020 17:18", "loggedInUserID" : "rs 7/5/2020 14:48", diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/README.md b/packages/TelegramClient-Core.package/TCCUserStore.class/README.md similarity index 100% rename from packages/TelegramClient-Core.package/TCCUsers.class/README.md rename to packages/TelegramClient-Core.package/TCCUserStore.class/README.md diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/class/newWith..st b/packages/TelegramClient-Core.package/TCCUserStore.class/class/newWith..st similarity index 100% rename from packages/TelegramClient-Core.package/TCCUsers.class/class/newWith..st rename to packages/TelegramClient-Core.package/TCCUserStore.class/class/newWith..st diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/instance/core..st b/packages/TelegramClient-Core.package/TCCUserStore.class/instance/core..st similarity index 100% rename from packages/TelegramClient-Core.package/TCCUsers.class/instance/core..st rename to packages/TelegramClient-Core.package/TCCUserStore.class/instance/core..st diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/instance/core.st b/packages/TelegramClient-Core.package/TCCUserStore.class/instance/core.st similarity index 100% rename from packages/TelegramClient-Core.package/TCCUsers.class/instance/core.st rename to packages/TelegramClient-Core.package/TCCUserStore.class/instance/core.st diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/instance/getUserFor..st b/packages/TelegramClient-Core.package/TCCUserStore.class/instance/getUserFor..st similarity index 100% rename from packages/TelegramClient-Core.package/TCCUsers.class/instance/getUserFor..st rename to packages/TelegramClient-Core.package/TCCUserStore.class/instance/getUserFor..st diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/instance/requestUserFor.with..st b/packages/TelegramClient-Core.package/TCCUserStore.class/instance/requestUserFor.with..st similarity index 78% rename from packages/TelegramClient-Core.package/TCCUsers.class/instance/requestUserFor.with..st rename to packages/TelegramClient-Core.package/TCCUserStore.class/instance/requestUserFor.with..st index 996057999..d20961bed 100644 --- a/packages/TelegramClient-Core.package/TCCUsers.class/instance/requestUserFor.with..st +++ b/packages/TelegramClient-Core.package/TCCUserStore.class/instance/requestUserFor.with..st @@ -6,4 +6,4 @@ requestUserFor: aUserId with: aPromise registerCallback: [:userEvent | aPromise resolveWith: (TCCUser newFrom: userEvent)]. - self core requestUser: aUserId with: callbackID \ No newline at end of file + self core requestUser: aUserId with: callbackID. \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCUserStore.class/methodProperties.json similarity index 77% rename from packages/TelegramClient-Core.package/TCCUsers.class/methodProperties.json rename to packages/TelegramClient-Core.package/TCCUserStore.class/methodProperties.json index 5ab243e3d..6c6787360 100644 --- a/packages/TelegramClient-Core.package/TCCUsers.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCUserStore.class/methodProperties.json @@ -5,4 +5,4 @@ "core" : "RK 5/19/2021 10:34", "core:" : "TR 6/15/2021 16:52", "getUserFor:" : "pk 6/19/2021 17:48", - "requestUserFor:with:" : "pk 6/19/2021 17:48" } } + "requestUserFor:with:" : "RS 6/23/2021 15:41" } } diff --git a/packages/TelegramClient-Core.package/TCCUsers.class/properties.json b/packages/TelegramClient-Core.package/TCCUserStore.class/properties.json similarity index 89% rename from packages/TelegramClient-Core.package/TCCUsers.class/properties.json rename to packages/TelegramClient-Core.package/TCCUserStore.class/properties.json index e8964e1f9..44d86cd4b 100644 --- a/packages/TelegramClient-Core.package/TCCUsers.class/properties.json +++ b/packages/TelegramClient-Core.package/TCCUserStore.class/properties.json @@ -7,7 +7,7 @@ "commentStamp" : "RK 5/19/2021 09:58", "instvars" : [ "core" ], - "name" : "TCCUsers", + "name" : "TCCUserStore", "pools" : [ ], "super" : "Dictionary", diff --git a/packages/TelegramClientTests-Core.package/TCTCAPITests.class/instance/testCanRequestUser.st b/packages/TelegramClientTests-Core.package/TCTCAPITests.class/instance/testCanRequestUser.st new file mode 100644 index 000000000..7fdea6b7c --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCAPITests.class/instance/testCanRequestUser.st @@ -0,0 +1,19 @@ +testing +testCanRequestUser + + | callbackID user | + + user := nil. + + callbackID := self sharedCore + registerCallback: + [:userEvent | user := TCCUser newFrom: userEvent]. + + self sharedCore requestUser: self sharedCore loggedInUserID with: callbackID. + 1 second wait. + + self assert: user notNil. + self assert: self sharedCore loggedInUserID equals: user id. + self assert: user firstName isString. + self assert: user lastName isString. + self assert: user username isString. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCAPITests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCAPITests.class/methodProperties.json index 4d028dfc1..cea9706e6 100644 --- a/packages/TelegramClientTests-Core.package/TCTCAPITests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCAPITests.class/methodProperties.json @@ -2,6 +2,7 @@ "class" : { }, "instance" : { + "testCanRequestUser" : "RS 6/23/2021 15:49", "testExtraAPIAttribute" : "RS 6/6/2021 10:50", "testMessageSending" : "RS 6/6/2021 10:54", "testPositionIsUpdatedAfterInitialChatLoading" : "RS 6/13/2021 17:02" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/instance/partialGroupMembersTestFor..st b/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/instance/partialGroupMembersTestFor..st index b61e0f162..eb4d0bd52 100644 --- a/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/instance/partialGroupMembersTestFor..st +++ b/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/instance/partialGroupMembersTestFor..st @@ -1,7 +1,7 @@ testing partialGroupMembersTestFor: aChat - self core users: TCTMMocks mockUserPromises. + self core users: TCTMMocks mockUserStore. aChat core: self core. aChat loadInfo. 1 seconds wait. diff --git a/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/methodProperties.json index 8f44c6e46..c5a300417 100644 --- a/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCCoreTests.class/methodProperties.json @@ -3,7 +3,7 @@ }, "instance" : { "newMessageReceived:" : "pk 5/17/2021 19:20", - "partialGroupMembersTestFor:" : "TR 6/13/2021 15:19", + "partialGroupMembersTestFor:" : "RS 6/23/2021 16:00", "receivedMessage" : "TR 6/2/2021 15:46", "receivedMessage:" : "TR 6/2/2021 15:47", "testAuthConstants" : "js 8/2/2020 22:54", diff --git a/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/instance/testCachesRequests.st b/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/instance/testCachesRequests.st new file mode 100644 index 000000000..529883bc8 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/instance/testCachesRequests.st @@ -0,0 +1,16 @@ +testing +testCachesRequests + + | path1 path2 | + self mockTeleClient onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. + + [self core imageStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + path1 := (self core imageStore at: TCTMMocks mockImageId) value. + + [self core imageStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + path2 := (self core imageStore at: TCTMMocks mockImageId) value. + + self assert: path1 equals: path2. + self assert: 1 equals: self core imageStore size. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/methodProperties.json index 15c4fb243..282ad7209 100644 --- a/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCImageStoreTests.class/methodProperties.json @@ -3,6 +3,7 @@ }, "instance" : { "setUp" : "pk 6/19/2021 17:37", + "testCachesRequests" : "RS 6/23/2021 15:51", "testCanGetImageForm" : "pk 6/19/2021 17:02", "testCanGetImagePath" : "pk 6/19/2021 17:24", "testDidCreateFile" : "pk 6/19/2021 17:35" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/README.md b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/README.md similarity index 100% rename from packages/TelegramClientTests-Core.package/TCTCUsersTests.class/README.md rename to packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/README.md diff --git a/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testCachesRequests.st b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testCachesRequests.st new file mode 100644 index 000000000..f70d27654 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testCachesRequests.st @@ -0,0 +1,17 @@ +testing +testCachesRequests + + | user1 user2 | + user1 := nil. + user2 := nil. + + self mockTeleClient onRequestType: 'getUser' respond: TCTMMocks mockUserJson1. + + [user1 := self core users getUserFor: TCTMMocks mockUser1 id.] fork. + 1 seconds wait. + + self assert: user1 notNil. + [user2 := self core users getUserFor: TCTMMocks mockUser1 id.] fork. + 1 seconds wait. + + self assert: user1 == user2. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testGetUserFor.st b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testGetUserFor.st new file mode 100644 index 000000000..91065cf3a --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/instance/testGetUserFor.st @@ -0,0 +1,12 @@ +testing +testGetUserFor + + | user | + user := nil. + + self mockTeleClient onRequestType: 'getUser' respond: TCTMMocks mockUserJson1. + + [user := self core users getUserFor: TCTMMocks mockUser1 id.] fork. + 1 seconds wait. + + self assert: TCTMMocks mockUser1 equals: user. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/methodProperties.json new file mode 100644 index 000000000..19c97406c --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/methodProperties.json @@ -0,0 +1,6 @@ +{ + "class" : { + }, + "instance" : { + "testCachesRequests" : "RS 6/23/2021 15:35", + "testGetUserFor" : "RS 6/23/2021 15:32" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/properties.json b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/properties.json similarity index 87% rename from packages/TelegramClientTests-Core.package/TCTCUsersTests.class/properties.json rename to packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/properties.json index 6520772a3..2662cadda 100644 --- a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/properties.json +++ b/packages/TelegramClientTests-Core.package/TCTCUserStoreTests.class/properties.json @@ -7,7 +7,7 @@ "commentStamp" : "RK 5/19/2021 10:18", "instvars" : [ ], - "name" : "TCTCUsersTests", + "name" : "TCTCUserStoreTests", "pools" : [ ], "super" : "TCTCNoTdlibTestCase", diff --git a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/instance/testGetUserFor.st b/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/instance/testGetUserFor.st deleted file mode 100644 index b42025368..000000000 --- a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/instance/testGetUserFor.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testGetUserFor - - | user | - user := nil. - - self mockTeleClient onRequestType: 'getUser' respond: TCTMMocks mockUserJson1. - - [user := self core users getUserFor: TCTMMocks mockUser1 id.] fork. - 1 seconds wait. - - self assert: TCTMMocks mockUser1 id equals: user id. - self assert: TCTMMocks mockUser1 firstName equals: user firstName. - self assert: TCTMMocks mockUser1 lastName equals: user lastName. - self assert: TCTMMocks mockUser1 username equals: user username. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/methodProperties.json deleted file mode 100644 index 1eb4a3717..000000000 --- a/packages/TelegramClientTests-Core.package/TCTCUsersTests.class/methodProperties.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testGetUserFor" : "TR 6/13/2021 14:47" } } diff --git a/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNotTooManyEmptyLines.st b/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNoConsecutiveEmptyLines.st similarity index 86% rename from packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNotTooManyEmptyLines.st rename to packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNoConsecutiveEmptyLines.st index 128ed0c07..827e581e0 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNotTooManyEmptyLines.st +++ b/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/instance/testMethodNoConsecutiveEmptyLines.st @@ -1,5 +1,5 @@ tests -testMethodNotTooManyEmptyLines +testMethodNoConsecutiveEmptyLines self methodsLinesDo: [:lines | 1 to: lines size -1 do: [:index | diff --git a/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/methodProperties.json index a09815ddc..621ff971f 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMLinterTests.class/methodProperties.json @@ -23,10 +23,10 @@ "testLongMethods" : "JB 6/10/2021 22:45", "testMethodHasEmptyLine" : "j 7/16/2020 12:29", "testMethodNameIsLowerCase" : "JB 6/13/2021 10:53", + "testMethodNoConsecutiveEmptyLines" : "RS 6/23/2021 15:53", "testMethodNoEmptyLineAtEnd" : "j 7/16/2020 12:32", "testMethodNoTrailingWhitespaces" : "JB 6/10/2021 22:45", "testMethodNoTwoWhitespacesNextToEachOther" : "js 6/13/2020 18:56", - "testMethodNotTooManyEmptyLines" : "js 6/13/2020 18:36", "testMethodParamsHaveMeaningfulNames" : "RS 6/6/2021 11:58", "testNoClassComments" : "js 6/13/2020 17:09", "testNoDotAfterReturn" : "js 6/13/2020 18:09", diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserPromises.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserStore.st similarity index 77% rename from packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserPromises.st rename to packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserStore.st index 2f5846879..108999c7f 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserPromises.st +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockUserStore.st @@ -1,7 +1,7 @@ user -mockUserPromises +mockUserStore - ^ TCCUsers newFrom: { + ^ TCCUserStore newFrom: { self mockUser1 id -> (Promise new resolveWith: self mockUser1). self mockUser2 id -> (Promise new resolveWith: self mockUser2) } \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json index b8ead0f03..989760b48 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json @@ -28,7 +28,7 @@ "mockUserEvent" : "per 6/10/2021 19:30", "mockUserJson1" : "per 6/10/2021 19:43", "mockUserJson2" : "per 6/10/2021 19:29", - "mockUserPromises" : "per 6/15/2021 09:21", + "mockUserStore" : "RS 6/23/2021 16:00", "mockUsers" : "TR 6/13/2021 15:15", "writeMockImage" : "pk 6/19/2021 17:36" }, "instance" : { diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st index 9937dc546..950c3d8fd 100644 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st +++ b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st @@ -3,5 +3,5 @@ setUp self core: (TCTUMockCore newWithTeleClient: TCTMMockTeleClient new). self core chats: TCTMMocks mockChats. - self core users: TCTMMocks mockUserPromises. + self core users: TCTMMocks mockUserStore. self wantsToTest: (TCUMain newWithCore: self core). diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json index 93adc2291..d45b40408 100644 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json +++ b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json @@ -18,7 +18,7 @@ "findByTextContent:in:" : "RS 5/31/2021 07:55", "forceSaveScreenshotOf:as:in:" : "RS 5/26/2021 13:29", "seeing:in:" : "per 6/15/2021 09:29", - "setUp" : "TR 6/13/2021 15:39", + "setUp" : "RS 6/23/2021 16:00", "takeScreenshotOf:" : "JB 5/24/2021 16:21", "tearDown" : "RS 6/25/2021 12:38", "waitUntil:" : "RS 6/6/2021 13:00" } }