public function testGetGeneratorConfig() { $config = $this->getMockBuilder('Propel\\Generator\\Config\\GeneratorConfig')->disableOriginalConstructor()->getMock(); $schema = $this->getSchemaMock('bookstore', ['generator_config' => $config]); $database = new Database(); $database->setParentSchema($schema); $this->assertInstanceOf('Propel\\Generator\\Config\\GeneratorConfig', $database->getGeneratorConfig()); }
/** * Retrieves the configuration object. * * @return GeneratorConfig */ public function getGeneratorConfig() { return $this->database->getGeneratorConfig(); }
public function testGetGeneratorConfig() { $config = $this->getMock('Propel\\Generator\\Config\\GeneratorConfig'); $schema = $this->getSchemaMock('bookstore', array('generator_config' => $config)); $database = new Database(); $database->setParentSchema($schema); $this->assertInstanceOf('Propel\\Generator\\Config\\GeneratorConfig', $database->getGeneratorConfig()); }