public function testSetName() { $schema = new Schema(); $schema->setName('bookstore-schema'); $this->assertSame('bookstore-schema', $schema->getName()); $this->assertSame('bookstore', $schema->getShortName()); }
<?php use Propel\Generator\Model\Schema; use Propel\Generator\Platform\MysqlPlatform; $database = (include __DIR__ . DIRECTORY_SEPARATOR . 'blog-database.php'); $schema = new Schema(new MysqlPlatform()); $schema->setName('acme'); $schema->addDatabase($database); return $schema;