Remove mockito

This commit is contained in:
Sixtus Agbo
2024-03-12 03:57:51 +01:00
parent 405decbd56
commit f71bf00dc3
3 changed files with 1 additions and 13 deletions

View File

@ -10,9 +10,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
class MockPathProviderPlatform extends Mock implements MethodChannel {}
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
@ -20,7 +17,6 @@ void main() {
setUp(() async {
const MethodChannel channel =
MethodChannel('plugins.flutter.io/path_provider');
final MockPathProviderPlatform mock = MockPathProviderPlatform();
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
if (methodCall.method == 'getApplicationDocumentsDirectory') {
@ -70,6 +66,7 @@ void main() {
expect(find.byType(HomePage), findsNothing);
expect(find.byType(SettingsPage), findsNothing);
});
testWidgets(
"Dashboard should display SettingsPage when navRailIndexStateProvider is 2",
(WidgetTester tester) async {