Skip to content

Commit f16f28d

Browse files
committed
add missing test
1 parent ce13802 commit f16f28d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Helper/LoadTypeDeciderTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,21 @@ public function checkViableLoadMethodExceptionProvider(): Generator
296296
],
297297
'expected' => 'Option "columns" is not supported when loading Bigquery table "foo.bar".',
298298
];
299+
300+
yield 'Snowflake Table to bigquery workspace' => [
301+
'tableInfo' => [
302+
'id' => 'foo.bar',
303+
'name' => 'bar',
304+
'bucket' => ['backend' => 'snowflake'],
305+
'isAlias' => false,
306+
],
307+
'workspaceType' => 'bigquery',
308+
'exportOptions' => [
309+
'columns' => [],
310+
],
311+
// phpcs:ignore Generic.Files.LineLength.MaxExceeded
312+
'expected' => 'Workspace type "bigquery" does not match table backend type "snowflake" when loading Bigquery table "foo.bar".',
313+
];
299314
}
300315

301316
/**

0 commit comments

Comments
 (0)