Skip to content

Commit 2118219

Browse files
committed
fix tests
1 parent 257ed43 commit 2118219

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Functional/Schema/CreateIndexTest.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ public function addCheckConstraints(): void
221221
foreach ($this->provideWrongData() as [$period_type_id, $period_start, $period_end]) {
222222
$data = compact('period_type_id', 'period_start', 'period_end');
223223
$this->expectException(QueryException::class);
224-
DB::table('test_table')->insert($data);
224+
try {
225+
DB::table('test_table')->insert($data);
226+
} catch (\Throwable $e) {
227+
echo class_basename($e) . PHP_EOL;
228+
}
225229
}
226230
}
227231

0 commit comments

Comments
 (0)