From aee4bb7281f7c58f0e438fa327948b071d11352d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kalinowski?= Date: Thu, 9 May 2019 15:10:44 +0200 Subject: [PATCH] Fix building a test target -Using Field matcher instead Eq to compare boost tribool value --- test/spells/targetConditions/ImmunityNegationConditionTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/spells/targetConditions/ImmunityNegationConditionTest.cpp b/test/spells/targetConditions/ImmunityNegationConditionTest.cpp index 3ea2c2a2c..92b8206e6 100644 --- a/test/spells/targetConditions/ImmunityNegationConditionTest.cpp +++ b/test/spells/targetConditions/ImmunityNegationConditionTest.cpp @@ -28,10 +28,9 @@ public: void setDefaultExpectations() { ownerMatches = GetParam(); - EXPECT_CALL(unitMock, getAllBonuses(_, _, _, _)).Times(AtLeast(0)); EXPECT_CALL(unitMock, getTreeVersion()).Times(AtLeast(0)); - EXPECT_CALL(mechanicsMock, ownerMatches(Eq(&unitMock), Eq(false))).WillRepeatedly(Return(ownerMatches)); + EXPECT_CALL(mechanicsMock, ownerMatches(Eq(&unitMock), Field(&boost::logic::tribool::value, boost::logic::tribool::false_value))).WillRepeatedly(Return(ownerMatches)); } protected: