Add date field backend test file
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 12 Sep 2023 13:11:03 +0000 (21:11 +0800)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 13 Sep 2023 08:47:54 +0000 (08:47 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
test/CMakeLists.txt
test/testdatefieldbackend.cpp [new file with mode: 0644]

index 69ebc08d518b469638e09cd4796e5277d98c9090..e1ea80801ded0aaf349f405c146d28ccd0f771f7 100644 (file)
@@ -74,6 +74,7 @@ nextcloud_add_test(SortedShareModel)
 nextcloud_add_test(SecureFileDrop)
 nextcloud_add_test(FileTagModel)
 nextcloud_add_test(SyncConflictsModel)
+nextcloud_add_test(DateFieldBackend)
 
 target_link_libraries(SecureFileDropTest PRIVATE Nextcloud::sync)
 configure_file(fake2eelocksucceeded.json "${PROJECT_BINARY_DIR}/bin/fake2eelocksucceeded.json" COPYONLY)
diff --git a/test/testdatefieldbackend.cpp b/test/testdatefieldbackend.cpp
new file mode 100644 (file)
index 0000000..eb1dfe5
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) by Claudio Cambra <claudio.cambra@nextcloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#include "gui/filedetails/datefieldbackend.h"
+
+#include <QTest>
+#include <QSignalSpy>
+
+using namespace OCC;
+
+class TestDateFieldBackend : public QObject
+{
+    Q_OBJECT
+}