Skip to content

Commit b17dade

Browse files
committed
Fix expected SNFLK exception
1 parent d6dd0c4 commit b17dade

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/Functional/Snowflake/Table/SnowflakeTableQueryBuilderTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Keboola\TableBackendUtils\Table\Snowflake\SnowflakeTableDefinition;
1313
use Keboola\TableBackendUtils\Table\Snowflake\SnowflakeTableQueryBuilder;
1414
use Keboola\TableBackendUtils\Table\Snowflake\SnowflakeTableReflection;
15+
use Keboola\TableBackendUtils\TableNotExistsReflectionException;
1516
use Tests\Keboola\TableBackendUtils\Functional\Snowflake\SnowflakeBaseCase;
1617

1718
// TODO we dont use DEFAULT values in columns.
@@ -54,7 +55,7 @@ public function testGetRenameTableCommand(): void
5455
$refNew->getRowsCount();
5556

5657
// test NON existence of old table via counting
57-
$this->expectException(DBALException::class);
58+
$this->expectException(TableNotExistsReflectionException::class);
5859
$refOld->getRowsCount();
5960
}
6061

@@ -98,7 +99,7 @@ public function testGetDropTableCommand(): void
9899
$this->connection->executeQuery($sql);
99100

100101
// test NON existence of old table via counting
101-
$this->expectException(DBALException::class);
102+
$this->expectException(TableNotExistsReflectionException::class);
102103
$ref->getRowsCount();
103104
}
104105

0 commit comments

Comments
 (0)