diff --git a/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js b/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js index ec96059e08..d68d89562c 100644 --- a/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js +++ b/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js @@ -44,6 +44,7 @@ AddMock(100, IID_Player, { GetColour: function() { return { r: 1, g: 1, b: 1, a: 1}; }, GetPopulationCount: function() { return 10; }, GetPopulationLimit: function() { return 20; }, + GetMaxPopulation: function() { return 200; }, GetResourceCounts: function() { return { food: 100 }; }, IsTrainingQueueBlocked: function() { return false; }, GetState: function() { return "active"; }, @@ -85,6 +86,7 @@ AddMock(101, IID_Player, { GetColour: function() { return { r: 1, g: 0, b: 0, a: 1}; }, GetPopulationCount: function() { return 40; }, GetPopulationLimit: function() { return 30; }, + GetMaxPopulation: function() { return 300; }, GetResourceCounts: function() { return { food: 200 }; }, IsTrainingQueueBlocked: function() { return false; }, GetState: function() { return "active"; }, @@ -128,6 +130,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), { colour: { r:1, g:1, b:1, a:1 }, popCount: 10, popLimit: 20, + popMax: 200, resourceCounts: { food: 100 }, trainingQueueBlocked: false, state: "active", @@ -142,6 +145,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), { colour: { r:1, g:0, b:0, a:1 }, popCount: 40, popLimit: 30, + popMax: 300, resourceCounts: { food: 200 }, trainingQueueBlocked: false, state: "active", @@ -163,6 +167,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), { colour: { r:1, g:1, b:1, a:1 }, popCount: 10, popLimit: 20, + popMax: 200, resourceCounts: { food: 100 }, trainingQueueBlocked: false, state: "active", @@ -193,6 +198,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), { colour: { r:1, g:0, b:0, a:1 }, popCount: 40, popLimit: 30, + popMax: 300, resourceCounts: { food: 200 }, trainingQueueBlocked: false, state: "active",