mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Refactoring CopyExtension to support source file copy
For SpecFlow tests, we used to support deploying extensions (modules and themes) only by deploying their compiled assemblies, and never copying their source files. We want to add SpecFlow test for dynamic compilation, so this refactoring was a necessary step to get there. --HG-- branch : dev
This commit is contained in:
@@ -105,17 +105,17 @@ namespace Orchard.Specs.Bindings {
|
||||
|
||||
[Given(@"I have module ""(.*)""")]
|
||||
public void GivenIHaveModule(string moduleName) {
|
||||
Host.CopyExtension("Modules", moduleName);
|
||||
Host.CopyExtension("Modules", moduleName, ExtensionDeploymentOptions.CompiledAssembly);
|
||||
}
|
||||
|
||||
[Given(@"I have theme ""(.*)""")]
|
||||
public void GivenIHaveTheme(string themeName) {
|
||||
Host.CopyExtension("Themes", themeName);
|
||||
Host.CopyExtension("Themes", themeName, ExtensionDeploymentOptions.CompiledAssembly);
|
||||
}
|
||||
|
||||
[Given(@"I have core ""(.*)""")]
|
||||
public void GivenIHaveCore(string moduleName) {
|
||||
Host.CopyExtension("Core", moduleName);
|
||||
Host.CopyExtension("Core", moduleName, ExtensionDeploymentOptions.CompiledAssembly);
|
||||
}
|
||||
|
||||
[Given(@"I have a clean site with")]
|
||||
|
Reference in New Issue
Block a user