Ejemplo n.º 1
0
 public function testSetGeneratorConfig()
 {
     $config = $this->getMock('Propel\\Generator\\Config\\GeneratorConfig');
     $schema = new Schema();
     $schema->setGeneratorConfig($config);
     $this->assertSame($config, $schema->getGeneratorConfig());
 }
Ejemplo n.º 2
0
 /**
  * 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());
 }