From c6fbb8b30d5db6c38e35bbb785b4340e5ce39a94 Mon Sep 17 00:00:00 2001 From: Konstantin P Date: Tue, 25 Apr 2023 12:51:25 +0300 Subject: [PATCH] tests: fix faction test --- test/entity/CFactionTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/entity/CFactionTest.cpp b/test/entity/CFactionTest.cpp index 83f2cf4ab..f7f1e1c60 100644 --- a/test/entity/CFactionTest.cpp +++ b/test/entity/CFactionTest.cpp @@ -87,8 +87,8 @@ TEST_F(CFactionTest, RegistersIcons) EXPECT_CALL(*this, registarCb(Eq(14), Eq(0), "ITPA", "Test30")); EXPECT_CALL(*this, registarCb(Eq(15), Eq(0), "ITPA", "Test40")); - EXPECT_CALL(*this, registarCb(Eq(0), Eq(1), "CPRSMALL", "Test5")); - EXPECT_CALL(*this, registarCb(Eq(0), Eq(1), "TWCRPORT", "Test6")); + EXPECT_CALL(*this, registarCb(Eq(subject->getIconIndex()), Eq(1), "CPRSMALL", "Test5")); + EXPECT_CALL(*this, registarCb(Eq(subject->getIconIndex()), Eq(1), "TWCRPORT", "Test6")); subject->registerIcons(cb); }