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:
parent
7329629b6e
commit
16a321d43b
@ -16,7 +16,7 @@
|
||||
// this is a local helper function in git-access.c
|
||||
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
|
||||
copy_prefs(&default_prefs, &prefs);
|
||||
|
||||
@ -7,7 +7,7 @@ class TestGitStorage : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void testSetup();
|
||||
void initTestCase();
|
||||
void testGitStorageLocal_data();
|
||||
void testGitStorageLocal();
|
||||
void testGitStorageCloud();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user