Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars authored and github-actions[bot] committed Aug 19, 2024
1 parent 0cdd851 commit 9cec01e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/Suites/Feature/History/HistoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,13 @@

describe('History Labeling handles bad configuration and arguments', function () {
it('exists early when no model is provided', function () {
$labeler = new LabelHistory();
$labeler = new LabelHistory;

expect($labeler->handle(new TableCopied('images', null, null)))->not->toThrow(LabelingException::class);
});

it('throws an exception when trying to label non-versioned models', function () {
$labeler = new LabelHistory();
$labeler = new LabelHistory;

$labeler->handle(new TableCopied('images', null, Image::class));
})->throws(LabelingException::class);
Expand Down
8 changes: 4 additions & 4 deletions tests/Suites/Regression/IndexesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
});

it('can drop named indexes from tables', function () {
$tableName = (new Document())->getTable();
$tableName = (new Document)->getTable();
$indexes = Collection::wrap(DB::select("PRAGMA index_list('$tableName')"));

expect($indexes)->toHaveCount(2);
Expand All @@ -31,7 +31,7 @@

versions()->setActive(createFirstVersion('schema/create'));

$tableName = (new Document())->getTable();
$tableName = (new Document)->getTable();
$indexes = Collection::wrap(DB::select("PRAGMA index_list('$tableName')"));

expect($indexes)->toHaveCount(2);
Expand All @@ -56,7 +56,7 @@
});

it('can drop computed indexes from tables', function () {
$tableName = (new Document())->getTable();
$tableName = (new Document)->getTable();
$indexes = Collection::wrap(DB::select("PRAGMA index_list('$tableName')"));
expect($indexes)->toHaveCount(2);
expect($indexes->pluck('name'))->toContain($tableName.'_released_at_index');
Expand All @@ -71,7 +71,7 @@

versions()->setActive(createFirstVersion('schema/create'));

$tableName = (new Document())->getTable();
$tableName = (new Document)->getTable();
$indexes = Collection::wrap(DB::select("PRAGMA index_list('$tableName')"));

expect($indexes)->toHaveCount(2);
Expand Down

0 comments on commit 9cec01e

Please sign in to comment.