Refactored integration tests to not use content entity prototypes (#2571)
* Refactored integration tests to not use content prototypes * oops * Apply suggestions from code review Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -20,10 +20,18 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
[TestOf(typeof(GravityGeneratorComponent))]
|
||||
public class WeightlessStatusTests : ContentIntegrationTest
|
||||
{
|
||||
private const string PROTOTYPES = @"
|
||||
- type: entity
|
||||
name: HumanDummy
|
||||
id: HumanDummy
|
||||
components:
|
||||
- type: AlertsUI
|
||||
";
|
||||
[Test]
|
||||
public async Task WeightlessStatusTest()
|
||||
{
|
||||
var server = StartServer();
|
||||
var options = new ServerIntegrationOptions{ExtraPrototypes = PROTOTYPES};
|
||||
var server = StartServer(options);
|
||||
|
||||
await server.WaitIdleAsync();
|
||||
|
||||
@@ -56,7 +64,7 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
|
||||
pauseManager.DoMapInitialize(mapId);
|
||||
|
||||
human = entityManager.SpawnEntity("HumanMob_Content", coordinates);
|
||||
human = entityManager.SpawnEntity("HumanDummy", coordinates);
|
||||
|
||||
Assert.True(human.TryGetComponent(out alerts));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user