Commit 8ebe4686 authored by Volker Krause's avatar Volker Krause
Browse files

Test adding of schema entry elements too

parent 1c0446e2
......@@ -21,6 +21,7 @@
#include <rest/restclient.h>
#include <core/product.h>
#include <core/schemaentryelement.h>
#include <QDebug>
#include <QtTest/qtest.h>
......@@ -107,6 +108,10 @@ private slots:
entry.setName(QStringLiteral("entry1"));
entry.setType(SchemaEntry::StringType);
entry.setAggregationType(SchemaEntry::Category);
SchemaEntryElement elem1;
elem1.setName(QStringLiteral("elem11"));
elem1.setType(SchemaEntryElement::Integer);
entry.setElements({elem1});
newProduct.setSchema({entry});
QVERIFY(newProduct.isValid());
reply = RESTApi::createProduct(&client, newProduct);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment