mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing data migration unit test
--HG-- branch : 1.x
This commit is contained in:
@@ -60,7 +60,6 @@ namespace Orchard.Tests.Modules.CodeGeneration.Commands {
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException(typeof(OrchardException))]
|
||||
public void CreateDataMigrationTestNonExistentFeature() {
|
||||
CodeGenerationCommands codeGenerationCommands = new CodeGenerationCommands(_extensionManager,
|
||||
_schemaCommandGenerator);
|
||||
@@ -68,6 +67,8 @@ namespace Orchard.Tests.Modules.CodeGeneration.Commands {
|
||||
TextWriter textWriterOutput = new StringWriter();
|
||||
codeGenerationCommands.Context = new CommandContext { Output = textWriterOutput };
|
||||
codeGenerationCommands.CreateDataMigration("feature");
|
||||
|
||||
Assert.That(textWriterOutput.ToString(), Is.StringContaining("Creating data migration failed"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user