summaryrefslogtreecommitdiff
path: root/tests/bindingstest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bindingstest.cpp')
-rw-r--r--tests/bindingstest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/bindingstest.cpp b/tests/bindingstest.cpp
index 6391666..ec56712 100644
--- a/tests/bindingstest.cpp
+++ b/tests/bindingstest.cpp
@@ -105,19 +105,19 @@ void BindingsTest::snippetConfigurationCompletness()
QCOMPARE(re.snippets(), snippets);
}
-void BindingsTest::tagConfigurationCompletness()
+void BindingsTest::relationConfigurationCompletness()
{
- Kolab::Tag tag("name1", "type1");
- tag.setColor("color");
- tag.setIconName("icon");
- tag.setParent("parent");
- tag.setPriority(3);
+ Kolab::Relation relation("name1", "type1");
+ relation.setColor("color");
+ relation.setIconName("icon");
+ relation.setParent("parent");
+ relation.setPriority(3);
std::vector<std::string> members;
members.push_back("member1");
members.push_back("member2");
- tag.setMembers(members);
+ relation.setMembers(members);
- Kolab::Configuration configuration(tag);
+ Kolab::Configuration configuration(relation);
configuration.setUid("uid");
configuration.setCreated(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC
configuration.setLastModified(Kolab::cDateTime(2006,1,6,12,0,0,true)); //UTC
@@ -130,8 +130,8 @@ void BindingsTest::tagConfigurationCompletness()
QCOMPARE(re.uid(), configuration.uid());
QCOMPARE(re.created(), configuration.created());
QCOMPARE(re.lastModified(), configuration.lastModified());
- QCOMPARE(re.type(), Kolab::Configuration::TypeTag);
- QCOMPARE(re.tag(), tag);
+ QCOMPARE(re.type(), Kolab::Configuration::TypeRelation);
+ QCOMPARE(re.relation(), relation);
}
void BindingsTest::noteCompletness()