Content changes for entity categories PR (#27232)

* Content changes for entity categories PR

* Poke tests

* Why are tests suddenly working?
This commit is contained in:
Leon Friedrich
2024-06-02 16:08:15 +12:00
committed by GitHub
parent b44b159431
commit 6235fa1ac6
16 changed files with 26 additions and 22 deletions

View File

@@ -19,6 +19,8 @@ namespace Content.IntegrationTests.Tests
[TestOf(typeof(EntityUid))]
public sealed class EntityTest
{
private static readonly ProtoId<EntityCategoryPrototype> SpawnerCategory = "Spawner";
[Test]
public async Task SpawnAndDeleteAllEntitiesOnDifferentMaps()
{
@@ -234,14 +236,6 @@ namespace Content.IntegrationTests.Tests
"StationEvent",
"TimedDespawn",
// Spawner entities
"DragonRift",
"RandomHumanoidSpawner",
"RandomSpawner",
"ConditionalSpawner",
"GhostRoleMobSpawner",
"NukeOperativeSpawner",
"TimedSpawner",
// makes an announcement on mapInit.
"AnnounceOnSpawn",
};
@@ -253,6 +247,7 @@ namespace Content.IntegrationTests.Tests
.Where(p => !p.Abstract)
.Where(p => !pair.IsTestPrototype(p))
.Where(p => !excluded.Any(p.Components.ContainsKey))
.Where(p => p.Categories.All(x => x.ID != SpawnerCategory))
.Select(p => p.ID)
.ToList();