Fix of flutter packages get in plugin project (#14757)
diff --git a/packages/flutter_tools/test/commands/packages_test.dart b/packages/flutter_tools/test/commands/packages_test.dart index e7fca64..e873aca 100644 --- a/packages/flutter_tools/test/commands/packages_test.dart +++ b/packages/flutter_tools/test/commands/packages_test.dart
@@ -192,6 +192,24 @@ // TODO(mravn): This test fails on the Chrome windows bot only. // Skipping until resolved. }, timeout: allowForRemotePubInvocation, skip: true); + testUsingContext('get fetches packages and injects plugin in plugin project', () async { + final String projectPath = await createProject( + temp, + arguments: <String>['-t', 'plugin', '--no-pub'], + ); + final String exampleProjectPath = fs.path.join(projectPath, 'example'); + removeGeneratedFiles(projectPath); + removeGeneratedFiles(exampleProjectPath); + + await runCommandIn(projectPath, 'get'); + + expectDependenciesResolved(projectPath); + + await runCommandIn(exampleProjectPath, 'get'); + + expectDependenciesResolved(exampleProjectPath); + expectPluginInjected(exampleProjectPath); + }, timeout: allowForRemotePubInvocation); }); group('packages test/pub', () {