diff options
Diffstat (limited to 'sigmod/test/TestAuthor.cpp')
| -rw-r--r-- | sigmod/test/TestAuthor.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sigmod/test/TestAuthor.cpp b/sigmod/test/TestAuthor.cpp index c3f27e8b..8b81a983 100644 --- a/sigmod/test/TestAuthor.cpp +++ b/sigmod/test/TestAuthor.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,19 +20,21 @@ // Sigmod includes #include "../Author.h" -#include "../Sigmod.h" +#include "../Game.h" // Qt includes #include <QtCore/QFile> #include <QtTest/QTest> +using namespace Sigmod; + void TestAuthor::initTestCase() { TestSigmodObject::initTestCase(); - m_author1 = m_sigmod->newAuthor(); - m_author2 = m_sigmod->newAuthor(); - m_author3 = m_sigmod->newAuthor(); + m_author1 = m_game->newAuthor(); + m_author2 = m_game->newAuthor(); + m_author3 = m_game->newAuthor(); } void TestAuthor::cleanupTestCase() @@ -92,7 +94,7 @@ void TestAuthor::validation() void TestAuthor::saving() { - QDomDocument xml = Sigmod::Object::xml(m_author1); + QDomDocument xml = Object::xml(m_author1); QFile file("author.xml"); QVERIFY(file.open(QIODevice::WriteOnly)); |
