mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Made DatabaseEnabledTestsBase.Cleanup virtual.
This enables child classes to provide additional cleanup.
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Orchard.Tests.Modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TearDown]
|
[TearDown]
|
||||||
public void Cleanup() {
|
public virtual void Cleanup() {
|
||||||
if(_container != null)
|
if(_container != null)
|
||||||
_container.Dispose();
|
_container.Dispose();
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace Orchard.Tests.Modules {
|
|||||||
return Enumerable.Empty<Type>();
|
return Enumerable.Empty<Type>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void ClearSession() {
|
protected void ClearSession() {
|
||||||
Trace.WriteLine("Flush and clear session");
|
Trace.WriteLine("Flush and clear session");
|
||||||
_transaction.Commit();
|
_transaction.Commit();
|
||||||
|
Reference in New Issue
Block a user