Commit ae9d6f5d authored by Laurent Montel's avatar Laurent Montel 😁

Fix variable name

parent e5d23d07
......@@ -168,7 +168,7 @@ void TemplateParserTester::test_processWithTemplatesForContent_data()
{
QTest::addColumn<QString>( "command" );
QTest::addColumn<QString>( "mailFileName" );
QTest::addColumn<QString>( "expected" );
QTest::addColumn<QString>( "expectedBody" );
QDir dir( QLatin1String(MAIL_DATA_DIR) );
foreach ( const QString &file, dir.entryList( QStringList(QLatin1String("plain*.mbox")), QDir::Files | QDir::Readable | QDir::NoSymLinks ) ) {
......@@ -197,7 +197,7 @@ void TemplateParserTester::test_processWithTemplatesForContent()
{
QFETCH( QString, command );
QFETCH( QString, mailFileName );
QFETCH( QString, expected );
QFETCH( QString, expectedBody );
QFile mailFile( mailFileName );
QVERIFY( mailFile.open( QIODevice::ReadOnly ) );
......@@ -215,7 +215,7 @@ void TemplateParserTester::test_processWithTemplatesForContent()
parser.processWithTemplate( command );
identMan->deleteLater();
QCOMPARE( QString::fromLatin1( msg->encodedBody() ), expected );
QCOMPARE( QString::fromLatin1( msg->encodedBody() ), expectedBody );
}
QTEST_KDEMAIN( TemplateParserTester, GUI )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment