From f447224a29a4456e880d96d8e0060af156a2ca70 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Sat, 22 May 2021 07:57:38 -0400 Subject: [PATCH] [quick-actions] Revert migrating integration tests to NNBD Reverts the quick_action portion of: "Move integration test to null safety for multiple plugins (#3932)" (commit a864de25001baaea6596420cf2a3b79948e01825) since it seems to have broken XCUITests. --- .../example/integration_test/quick_actions_test.dart | 3 ++- .../quick_actions/example/test_driver/integration_test.dart | 2 ++ packages/quick_actions/quick_actions/pubspec.yaml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart b/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart index 9539b46ed883..cfe3eb0db656 100644 --- a/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart +++ b/packages/quick_actions/quick_actions/example/integration_test/quick_actions_test.dart @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'package:quick_actions/quick_actions.dart'; @@ -11,7 +12,7 @@ void main() { testWidgets('Can set shortcuts', (WidgetTester tester) async { final QuickActions quickActions = QuickActions(); - await quickActions.initialize((String shortcutType) => {}); + await quickActions.initialize(null); const ShortcutItem shortCutItem = ShortcutItem( type: 'action_one', diff --git a/packages/quick_actions/quick_actions/example/test_driver/integration_test.dart b/packages/quick_actions/quick_actions/example/test_driver/integration_test.dart index 4f10f2a522f3..6a0e6fa82dbe 100644 --- a/packages/quick_actions/quick_actions/example/test_driver/integration_test.dart +++ b/packages/quick_actions/quick_actions/example/test_driver/integration_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart=2.9 + import 'package:integration_test/integration_test_driver.dart'; Future main() => integrationDriver(); diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index f4693d4d69d7..52a97b9e842c 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -27,6 +27,8 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.0.0 + integration_test: + sdk: flutter + mockito: ^5.0.0-nullsafety.7 pedantic: ^1.11.0 plugin_platform_interface: ^2.0.0