Commit 54978947 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Adapt signal spy to changed signal signatures

parent 00931d4a
......@@ -58,7 +58,7 @@ void TestIResourceRepository::performInterfaceTests(IResourceRepository *interfa
QCOMPARE(interface->courses().count(), 0); // load courses only on demand
// test adding
QSignalSpy spyAboutToBeAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAboutToBeAdded(ICourse*, int)));
QSignalSpy spyAboutToBeAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAboutToBeAdded(std::shared_ptr<ICourse>, int)));
QSignalSpy spyAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAdded()));
QCOMPARE(spyAboutToBeAdded.count(), 0);
QCOMPARE(spyAdded.count(), 0);
......
......@@ -55,7 +55,7 @@ void TestResourceRepository::iResourceRepositoryCompatability()
QCOMPARE(interface->courses().count(), 0);
// test adding
QSignalSpy spyAboutToBeAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAboutToBeAdded(ICourse*, int)));
QSignalSpy spyAboutToBeAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAboutToBeAdded(std::shared_ptr<ICourse>, int)));
QSignalSpy spyAdded(dynamic_cast<QObject *>(interface), SIGNAL(courseAdded()));
QCOMPARE(spyAboutToBeAdded.count(), 0);
QCOMPARE(spyAdded.count(), 0);
......
Markdown is supported
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