public function setUp() { $this->conn = \DoctrineExtensions\Workflow\TestHelper::getConnection(); $this->options = new WorkflowOptions('test_', null, null, $this->createSerializer()); TestHelper::createSchema($this->options); $this->manager = new WorkflowManager($this->conn, $this->options); }
public function setUp() { parent::setUp(); $this->conn = \DoctrineExtensions\Workflow\TestHelper::getConnection(); $this->options = new WorkflowOptions('test_'); TestHelper::createSchema($this->options); $this->dbStorage = new DefinitionStorage($this->conn, $this->options); }
public function testSchemaCreate() { $conn = \DoctrineExtensions\Workflow\TestHelper::getConnection(); $options = new WorkflowOptions('myprefix_'); $builder = new SchemaBuilder($conn); $schema = $builder->getWorkflowSchema($options); $this->assertInstanceOf('Doctrine\\DBAL\\Schema\\Schema', $schema); $this->assertFalse($schema->hasTable('workflow')); $this->assertTrue($schema->hasTable('myprefix_workflow')); }