Skip to content

Commit f39dec6

Browse files
committed
MAGETWO-95595: Index names are ignored by declarative schema
1 parent c187f2b commit f39dec6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/Setup/Test/Unit/Declaration/Schema/Db/SchemaBuilderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ public function testBuildUnknownIndexColumn(array $columns, array $references, a
312312
Schema::class,
313313
['resourceConnection' => $resourceConnectionMock]
314314
);
315-
$this->expectException(\PHPUnit\Framework\Exception::class);
316-
$this->expectExceptionCode(E_USER_WARNING);
315+
$this->expectException(\Exception::class);
317316
$this->expectExceptionMessage(
318317
'User Warning: Column unknown_column does not exist for index/constraint FIRST_INDEX in table second_table.'
319318
);

0 commit comments

Comments
 (0)