]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Store Test Change (#34844)
authorActiveMammmoth <140334666+ActiveMammmoth@users.noreply.github.com>
Mon, 3 Feb 2025 22:11:06 +0000 (17:11 -0500)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2025 22:11:06 +0000 (17:11 -0500)
Content.IntegrationTests/Tests/StoreTests.cs

index 3f010245d8936ad176945caba61b1dbff77d3a57..1f7d357bc05da276259546137930899aee1c4ba7 100644 (file)
@@ -5,6 +5,7 @@ using Content.Server.Store.Systems;
 using Content.Server.Traitor.Uplink;
 using Content.Shared.FixedPoint;
 using Content.Shared.Inventory;
+using Content.Shared.Mind;
 using Content.Shared.Store;
 using Content.Shared.Store.Components;
 using Content.Shared.StoreDiscount.Components;
@@ -64,6 +65,7 @@ public sealed class StoreTests
         await server.WaitAssertion(() =>
         {
             var invSystem = entManager.System<InventorySystem>();
+            var mindSystem = entManager.System<SharedMindSystem>();
 
             human = entManager.SpawnEntity("HumanUniformDummy", coordinates);
             uniform = entManager.SpawnEntity("UniformDummy", coordinates);
@@ -72,6 +74,9 @@ public sealed class StoreTests
             Assert.That(invSystem.TryEquip(human, uniform, "jumpsuit"));
             Assert.That(invSystem.TryEquip(human, pda, "id"));
 
+            var mind = mindSystem.CreateMind(null);
+            mindSystem.TransferTo(mind, human, mind: mind);
+
             FixedPoint2 originalBalance = 20;
             uplinkSystem.AddUplink(human, originalBalance, null, true);