TF-3345 Add mock TwakeAppManager for verify_before_time_in_search_email_filter_test unit test
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -79,6 +79,7 @@ import 'package:tmail_ui_user/features/thread/presentation/thread_controller.dar
|
|||||||
import 'package:tmail_ui_user/main/bindings/network/binding_tag.dart';
|
import 'package:tmail_ui_user/main/bindings/network/binding_tag.dart';
|
||||||
import 'package:tmail_ui_user/main/utils/email_receive_manager.dart';
|
import 'package:tmail_ui_user/main/utils/email_receive_manager.dart';
|
||||||
import 'package:tmail_ui_user/main/utils/toast_manager.dart';
|
import 'package:tmail_ui_user/main/utils/toast_manager.dart';
|
||||||
|
import 'package:tmail_ui_user/main/utils/twake_app_manager.dart';
|
||||||
import 'package:uuid/uuid.dart';
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
import '../../fixtures/account_fixtures.dart';
|
import '../../fixtures/account_fixtures.dart';
|
||||||
@@ -106,6 +107,7 @@ const fallbackGenerators = {
|
|||||||
MockSpec<Uuid>(),
|
MockSpec<Uuid>(),
|
||||||
MockSpec<ApplicationManager>(),
|
MockSpec<ApplicationManager>(),
|
||||||
MockSpec<ToastManager>(),
|
MockSpec<ToastManager>(),
|
||||||
|
MockSpec<TwakeAppManager>(),
|
||||||
// Thread controller mock specs
|
// Thread controller mock specs
|
||||||
MockSpec<GetEmailsInMailboxInteractor>(),
|
MockSpec<GetEmailsInMailboxInteractor>(),
|
||||||
MockSpec<RefreshChangesEmailsInMailboxInteractor>(),
|
MockSpec<RefreshChangesEmailsInMailboxInteractor>(),
|
||||||
@@ -221,6 +223,7 @@ void main() {
|
|||||||
late MockUuid mockUuid;
|
late MockUuid mockUuid;
|
||||||
late MockApplicationManager mockApplicationManager;
|
late MockApplicationManager mockApplicationManager;
|
||||||
late MockToastManager mockToastManager;
|
late MockToastManager mockToastManager;
|
||||||
|
late MockTwakeAppManager mockTwakeAppManager;
|
||||||
|
|
||||||
setUpAll(() {
|
setUpAll(() {
|
||||||
Get.testMode = true;
|
Get.testMode = true;
|
||||||
@@ -238,6 +241,7 @@ void main() {
|
|||||||
mockUuid = MockUuid();
|
mockUuid = MockUuid();
|
||||||
mockApplicationManager = MockApplicationManager();
|
mockApplicationManager = MockApplicationManager();
|
||||||
mockToastManager = MockToastManager();
|
mockToastManager = MockToastManager();
|
||||||
|
mockTwakeAppManager = MockTwakeAppManager();
|
||||||
|
|
||||||
Get.put<CachingManager>(mockCachingManager);
|
Get.put<CachingManager>(mockCachingManager);
|
||||||
Get.put<LanguageCacheManager>(mockLanguageCacheManager);
|
Get.put<LanguageCacheManager>(mockLanguageCacheManager);
|
||||||
@@ -256,6 +260,7 @@ void main() {
|
|||||||
Get.put<Uuid>(mockUuid);
|
Get.put<Uuid>(mockUuid);
|
||||||
Get.put<ApplicationManager>(mockApplicationManager);
|
Get.put<ApplicationManager>(mockApplicationManager);
|
||||||
Get.put<ToastManager>(mockToastManager);
|
Get.put<ToastManager>(mockToastManager);
|
||||||
|
Get.put<TwakeAppManager>(mockTwakeAppManager);
|
||||||
|
|
||||||
// Mock thread controller
|
// Mock thread controller
|
||||||
mockGetEmailsInMailboxInteractor = MockGetEmailsInMailboxInteractor();
|
mockGetEmailsInMailboxInteractor = MockGetEmailsInMailboxInteractor();
|
||||||
|
|||||||
Reference in New Issue
Block a user