mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Use AccountPtr in testpushnotifications
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
49bac25415
commit
b2836dd55b
@ -257,8 +257,8 @@ private slots:
|
||||
|
||||
QCOMPARE(connectionLostSpy.count(), 1);
|
||||
|
||||
auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::Account *>();
|
||||
QCOMPARE(accountSent, account.data());
|
||||
const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::AccountPtr>();
|
||||
QCOMPARE(accountSent.data(), account.data());
|
||||
}
|
||||
|
||||
void testAccount_web_socket_authenticationFailed_emitNotificationsDisabled()
|
||||
@ -272,8 +272,8 @@ private slots:
|
||||
|
||||
// Now the pushNotificationsDisabled Signal should be emitted
|
||||
QCOMPARE(pushNotificationsDisabledSpy.count(), 1);
|
||||
auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::Account *>();
|
||||
QCOMPARE(accountSent, account.data());
|
||||
const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::AccountPtr>();
|
||||
QCOMPARE(accountSent.data(), account.data());
|
||||
}
|
||||
|
||||
void testPingTimeout_pingTimedOut_reconnect()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user