Use proper QTest initialization method in TestGitStorage

Method originally called testSetup is more a precondition
to test execution rather than an actual test.
QTest recommends to use initTestCase for that purpose.

Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
Jeremie Guichard 2017-03-03 13:25:23 +07:00 committed by Dirk Hohndel
parent 7329629b6e
commit 16a321d43b
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
// this is a local helper function in git-access.c // this is a local helper function in git-access.c
extern "C" char *get_local_dir(const char *remote, const char *branch); extern "C" char *get_local_dir(const char *remote, const char *branch);
void TestGitStorage::testSetup() void TestGitStorage::initTestCase()
{ {
// first, setup the preferences an proxy information // first, setup the preferences an proxy information
copy_prefs(&default_prefs, &prefs); copy_prefs(&default_prefs, &prefs);

View file

@ -7,7 +7,7 @@ class TestGitStorage : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private slots:
void testSetup(); void initTestCase();
void testGitStorageLocal_data(); void testGitStorageLocal_data();
void testGitStorageLocal(); void testGitStorageLocal();
void testGitStorageCloud(); void testGitStorageCloud();