Skip to content

Commit 4a81212

Browse files
committed
Fix tests
1 parent 3be7101 commit 4a81212

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Hybrid/CreateTable/SortKeysTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,28 +116,28 @@ public function it_adds_a_dual_sort_key_with_different_directions()
116116
/** @test */
117117
public function it_cannot_add_a_dual_sort_key_with_only_one_direction()
118118
{
119+
$this->expectException(InvalidArgumentException::class);
120+
119121
$blueprint = $this->createTable(function (Blueprint $table) {
120122
$table->string('f_name');
121123
$table->string('l_name');
122124
$table->sortKey(['f_name', ['l_name', 'desc']]);
123125
});
124126

125-
$this->expectException(InvalidArgumentException::class);
126-
127127
$blueprint->toSql($this->getConnection(), $this->getGrammar());
128128
}
129129

130130
/** @test */
131131
public function it_cannot_add_a_dual_sort_key_with_only_one_direction_desc()
132132
{
133+
$this->expectException(InvalidArgumentException::class);
134+
133135
$blueprint = $this->createTable(function (Blueprint $table) {
134136
$table->string('f_name');
135137
$table->string('l_name');
136138
$table->sortKey(['f_name', ['l_name', 'asc']], 'desc');
137139
});
138140

139-
$this->expectException(InvalidArgumentException::class);
140-
141141
$blueprint->toSql($this->getConnection(), $this->getGrammar());
142142
}
143143

0 commit comments

Comments
 (0)