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

Adapt tests to changed signals

parent 54d4418f
......@@ -118,7 +118,7 @@ void TestCourseResource::unitAddAndRemoveHandling()
unit->setId("testunit");
const int initialUnitNumber = course.units().count();
QCOMPARE(initialUnitNumber, 1);
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(Unit*, int)));
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(std::shared_ptr<Unit>, int)));
QSignalSpy spyAdded(&course, SIGNAL(unitAdded()));
QCOMPARE(spyAboutToBeAdded.count(), 0);
QCOMPARE(spyAdded.count(), 0);
......
......@@ -116,7 +116,7 @@ void TestEditableCourseResource::unitAddAndRemoveHandling()
unit->setId("testunit");
const int initialUnitNumber = course.units().count();
QCOMPARE(initialUnitNumber, 1);
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(Unit*, int)));
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(std::shared_ptr<Unit>, int)));
QSignalSpy spyAdded(&course, SIGNAL(unitAdded()));
QCOMPARE(spyAboutToBeAdded.count(), 0);
QCOMPARE(spyAdded.count(), 0);
......
......@@ -108,7 +108,7 @@ void TestSkeletonResource::unitAddAndRemoveHandling()
unit->setId("testunit");
const int initialUnitNumber = course.units().count();
QCOMPARE(initialUnitNumber, 2);
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(Unit*, int)));
QSignalSpy spyAboutToBeAdded(&course, SIGNAL(unitAboutToBeAdded(std::shared_ptr<Unit>, int)));
QSignalSpy spyAdded(&course, SIGNAL(unitAdded()));
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