Skip to content

Commit

Permalink
Update test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-b committed Aug 12, 2023
1 parent 3ae71a8 commit 7fa08bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Event/DBALSchemaEventSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ public function testAlterTableScenario(): void

$tableDiff = new TableDiff('points');
$tableDiff->fromTable = $table;
$tableDiff->addedColumns['linestring'] = new Column('linestring', Type::getType('geometry'), ['customSchemaOptions' => ['geometry_type' => 'linestring', 'srid' => 3785]]);
$tableDiff->addedColumns['linestring'] = new Column('linestring', Type::getType('geometry'), ['platformOptions' => ['geometry_type' => 'linestring', 'srid' => 3785]]);
$tableDiff->removedColumns['point'] = $table->getColumn('point');
$tableDiff->changedColumns[] = new ColumnDiff('point_3dm', new Column('point_3dm', Type::getType('geometry'), ['customSchemaOptions' => ['srid' => 4326]]), ['srid'], $table->getColumn('point_3dm'));
$tableDiff->changedColumns[] = new ColumnDiff('point_3dm', new Column('point_3dm', Type::getType('geometry'), ['platformOptions' => ['srid' => 4326]]), ['srid'], $table->getColumn('point_3dm'));

$this->sm->alterTable($tableDiff);

Expand Down Expand Up @@ -431,7 +431,7 @@ public function testAlterTableThrowsExceptionForChangedSpatialType(): void

$tableDiff = new TableDiff('points');
$tableDiff->fromTable = $table;
$tableDiff->changedColumns[] = new ColumnDiff('point_2d', new Column('point_2d', Type::getType('geometry'), ['customSchemaOptions' => ['geometry_type' => 'LINESTRING']]), ['geometry_type'], $table->getColumn('point_2d'));
$tableDiff->changedColumns[] = new ColumnDiff('point_2d', new Column('point_2d', Type::getType('geometry'), ['platformOptions' => ['geometry_type' => 'LINESTRING']]), ['geometry_type'], $table->getColumn('point_2d'));

$this->sm->alterTable($tableDiff);
}
Expand Down

0 comments on commit 7fa08bb

Please sign in to comment.