From df89665295fe969cb515728e8507732b34566764 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Tue, 29 Aug 2023 17:13:36 +0200 Subject: [PATCH] test(neon): test OptionsCollection Signed-off-by: Nikolas Rimikis --- .../neon/test/options_collection_test.dart | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 packages/neon/neon/test/options_collection_test.dart diff --git a/packages/neon/neon/test/options_collection_test.dart b/packages/neon/neon/test/options_collection_test.dart new file mode 100644 index 00000000..e9cec416 --- /dev/null +++ b/packages/neon/neon/test/options_collection_test.dart @@ -0,0 +1,84 @@ +import 'package:mocktail/mocktail.dart'; +import 'package:neon/settings.dart'; +import 'package:neon/src/settings/models/option.dart'; +import 'package:neon/src/settings/models/storage.dart'; +import 'package:test/test.dart'; + +// ignore: missing_override_of_must_be_overridden +class OptionMock extends Mock implements Option {} + +class Collection extends NextcloudAppOptions { + Collection(final List