public function testSetGeneratorConfig() { $config = $this->getMock('Propel\\Generator\\Config\\GeneratorConfig'); $schema = new Schema(); $schema->setGeneratorConfig($config); $this->assertSame($config, $schema->getGeneratorConfig()); }
/** * Returns the GeneratorConfigInterface object. * * @return GeneratorConfigInterface */ public function getGeneratorConfig() { if ($this->parentSchema) { return $this->parentSchema->getGeneratorConfig(); } }
public function testSetGeneratorConfig() { $config = $this->getMockBuilder('Propel\\Generator\\Config\\GeneratorConfig')->disableOriginalConstructor()->getMock(); $schema = new Schema(); $schema->setGeneratorConfig($config); $this->assertSame($config, $schema->getGeneratorConfig()); }