Added chatoverlay caching to testcase so test still works (chat needs to be injected so channels can be opened)

This commit is contained in:
FreezyLemon 2017-12-04 13:27:14 +01:00
parent bf97f8b1b1
commit dcdc186a53

View File

@ -13,6 +13,7 @@ namespace osu.Game.Tests.Visual
internal class TestCaseChatDisplay : OsuTestCase
{
private BeatmapSetOverlay beatmapSetOverlay;
private readonly ChatOverlay chat;
private DependencyContainer dependencies;
@ -20,10 +21,12 @@ namespace osu.Game.Tests.Visual
public TestCaseChatDisplay()
{
Add(new ChatOverlay
chat = new ChatOverlay
{
State = Visibility.Visible
});
};
Add(chat);
Add(beatmapSetOverlay = new BeatmapSetOverlay());
}
@ -31,6 +34,7 @@ namespace osu.Game.Tests.Visual
[BackgroundDependencyLoader]
private void load()
{
dependencies.Cache(chat);
dependencies.Cache(beatmapSetOverlay);
}
}