AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ConfigEnvTest Class Reference
Inheritance diagram for ConfigEnvTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

std::string confFilePath
 

Detailed Description

Member Function Documentation

◆ SetUp()

void ConfigEnvTest::SetUp ( )
inlineoverrideprotected
45 {
46 std::map<std::string, std::string> config;
47 config["Int.Nested"] = "4242";
48 config["lower"] = "simpleString";
49 config["UPPER"] = "simpleString";
50 config["SomeLong.NestedNameWithNumber.Like1"] = "1";
51 config["GM.InGMList.Level"] = "50";
52
54
55 sConfigMgr->Configure(confFilePath, std::vector<std::string>());
56 sConfigMgr->LoadAppConfigs();
57 }
#define sConfigMgr
Definition: Config.h:74
std::string confFilePath
Definition: Config.cpp:63
std::string CreateConfigWithMap(std::map< std::string, std::string > const &map)
Definition: Config.cpp:27

References confFilePath, CreateConfigWithMap(), and sConfigMgr.

◆ TearDown()

void ConfigEnvTest::TearDown ( )
inlineoverrideprotected
59 {
60 std::remove(confFilePath.c_str());
61 }

References confFilePath.

Member Data Documentation

◆ confFilePath

std::string ConfigEnvTest::confFilePath
protected

Referenced by SetUp(), and TearDown().