File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,28 +116,28 @@ public function it_adds_a_dual_sort_key_with_different_directions()
116
116
/** @test */
117
117
public function it_cannot_add_a_dual_sort_key_with_only_one_direction ()
118
118
{
119
+ $ this ->expectException (InvalidArgumentException::class);
120
+
119
121
$ blueprint = $ this ->createTable (function (Blueprint $ table ) {
120
122
$ table ->string ('f_name ' );
121
123
$ table ->string ('l_name ' );
122
124
$ table ->sortKey (['f_name ' , ['l_name ' , 'desc ' ]]);
123
125
});
124
126
125
- $ this ->expectException (InvalidArgumentException::class);
126
-
127
127
$ blueprint ->toSql ($ this ->getConnection (), $ this ->getGrammar ());
128
128
}
129
129
130
130
/** @test */
131
131
public function it_cannot_add_a_dual_sort_key_with_only_one_direction_desc ()
132
132
{
133
+ $ this ->expectException (InvalidArgumentException::class);
134
+
133
135
$ blueprint = $ this ->createTable (function (Blueprint $ table ) {
134
136
$ table ->string ('f_name ' );
135
137
$ table ->string ('l_name ' );
136
138
$ table ->sortKey (['f_name ' , ['l_name ' , 'asc ' ]], 'desc ' );
137
139
});
138
140
139
- $ this ->expectException (InvalidArgumentException::class);
140
-
141
141
$ blueprint ->toSql ($ this ->getConnection (), $ this ->getGrammar ());
142
142
}
143
143
You can’t perform that action at this time.
0 commit comments