From 5d6e8973ccbab56ec4e48f15edd7eac4f42fc42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Soto?= Date: Thu, 15 Feb 2024 13:59:26 -0300 Subject: [PATCH] tests: fix outdated mocks --- .../test/snapd_cache_test.mocks.dart | 23 +++++++++++++++++++ .../test/snapd_watcher_test.mocks.dart | 23 +++++++++++++++++++ .../app_center/test/test_utils.mocks.dart | 23 +++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/packages/app_center/test/snapd_cache_test.mocks.dart b/packages/app_center/test/snapd_cache_test.mocks.dart index d9965b5a2..93cb78eb9 100644 --- a/packages/app_center/test/snapd_cache_test.mocks.dart +++ b/packages/app_center/test/snapd_cache_test.mocks.dart @@ -248,6 +248,27 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { )), ) as _i3.Future); + @override + _i3.Future installMany( + List? names, { + bool? classic = false, + }) => + (super.noSuchMethod( + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + )), + ) as _i3.Future); + @override _i3.Future connect( String? snap, @@ -317,6 +338,7 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { String? category, String? section, _i2.SnapFindFilter? filter, + _i2.SnapFindScope? scope, }) => (super.noSuchMethod( Invocation.method( @@ -328,6 +350,7 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #category: category, #section: section, #filter: filter, + #scope: scope, }, ), returnValue: _i3.Future>.value(<_i2.Snap>[]), diff --git a/packages/app_center/test/snapd_watcher_test.mocks.dart b/packages/app_center/test/snapd_watcher_test.mocks.dart index 23f43b8af..f5eb90bd7 100644 --- a/packages/app_center/test/snapd_watcher_test.mocks.dart +++ b/packages/app_center/test/snapd_watcher_test.mocks.dart @@ -248,6 +248,27 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { )), ) as _i3.Future); + @override + _i3.Future installMany( + List? names, { + bool? classic = false, + }) => + (super.noSuchMethod( + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + )), + ) as _i3.Future); + @override _i3.Future connect( String? snap, @@ -317,6 +338,7 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { String? category, String? section, _i2.SnapFindFilter? filter, + _i2.SnapFindScope? scope, }) => (super.noSuchMethod( Invocation.method( @@ -328,6 +350,7 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #category: category, #section: section, #filter: filter, + #scope: scope, }, ), returnValue: _i3.Future>.value(<_i2.Snap>[]), diff --git a/packages/app_center/test/test_utils.mocks.dart b/packages/app_center/test/test_utils.mocks.dart index 488cc2c30..8b27e2647 100644 --- a/packages/app_center/test/test_utils.mocks.dart +++ b/packages/app_center/test/test_utils.mocks.dart @@ -994,6 +994,27 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { )), ) as _i14.Future); + @override + _i14.Future installMany( + List? names, { + bool? classic = false, + }) => + (super.noSuchMethod( + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + returnValue: _i14.Future.value(_i13.dummyValue( + this, + Invocation.method( + #installMany, + [names], + {#classic: classic}, + ), + )), + ) as _i14.Future); + @override _i14.Future connect( String? snap, @@ -1063,6 +1084,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { String? category, String? section, _i2.SnapFindFilter? filter, + _i2.SnapFindScope? scope, }) => (super.noSuchMethod( Invocation.method( @@ -1074,6 +1096,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #category: category, #section: section, #filter: filter, + #scope: scope, }, ), returnValue: _i14.Future>.value(<_i2.Snap>[]),