Browse Source

tests: fix faction test

Konstantin P 2 years ago
parent
commit
c6fbb8b30d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entity/CFactionTest.cpp

+ 2 - 2
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);
 }