/** * @group core */ public function testCreateModuleWithCorrectConfig() { $class = 'StubModule'; $config = array('firstField' => 'firstValue', 'secondField' => 'secondValue'); $module = \Codeception\Configuration::createModule($class, $config); $this->assertEquals($config['firstField'], $module->_getFirstField()); $this->assertEquals($config['secondField'], $module->_getSecondField()); }