fix(Core/Tests): Add missing GetDataPath mock to combat tests (#25198)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
9757174460
commit
757f6127ab
2 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ protected:
|
|||
ON_CALL(*_worldMock, getIntConfig(_)).WillByDefault(Return(0));
|
||||
ON_CALL(*_worldMock, getFloatConfig(_)).WillByDefault(Return(1.0f));
|
||||
ON_CALL(*_worldMock, getBoolConfig(_)).WillByDefault(Return(false));
|
||||
static std::string emptyString;
|
||||
ON_CALL(*_worldMock, GetDataPath()).WillByDefault(ReturnRef(emptyString));
|
||||
|
||||
sWorld.reset(_worldMock);
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ protected:
|
|||
ON_CALL(*_worldMock, getIntConfig(_)).WillByDefault(Return(0));
|
||||
ON_CALL(*_worldMock, getFloatConfig(_)).WillByDefault(Return(1.0f));
|
||||
ON_CALL(*_worldMock, getBoolConfig(_)).WillByDefault(Return(false));
|
||||
static std::string emptyString;
|
||||
ON_CALL(*_worldMock, GetDataPath()).WillByDefault(ReturnRef(emptyString));
|
||||
|
||||
sWorld.reset(_worldMock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue