зеркало из https://github.com/nextcloud/desktop.git
SyncConfilctsModel test: use FakeAccountState
Using the real account state needs an internet connection. Additionally, `example.de` is a valid existing domain, which should probably not be used in testing. Switching to `example.com` as this is recommended here. Signed-off-by: Thomas Witt <pyromaniac@exherbo.org>
This commit is contained in:
Родитель
8a9de185a9
Коммит
d0097ce25c
|
@ -61,13 +61,13 @@ private slots:
|
|||
FolderMan fm;
|
||||
|
||||
auto account = Account::create();
|
||||
auto url = QUrl{"http://example.de"};
|
||||
auto url = QUrl{"http://example.com"};
|
||||
auto cred = new HttpCredentialsTest("testuser", "secret");
|
||||
account->setCredentials(cred);
|
||||
account->setUrl(url);
|
||||
url.setUserName(cred->user());
|
||||
|
||||
auto newAccountState{AccountStatePtr{ new AccountState{account}}};
|
||||
auto newAccountState{AccountStatePtr{ new FakeAccountState{account}}};
|
||||
auto folderman = FolderMan::instance();
|
||||
QCOMPARE(folderman, &fm);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче