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:
Thomas Witt 2024-03-30 16:18:10 +01:00 коммит произвёл Matthieu Gallien
Родитель 8a9de185a9
Коммит d0097ce25c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);