Skip to content

Commit 986e24a

Browse files
KminekMatejdg
authored andcommitted
Avoid separation of test into two tests - keep only one just original does
1 parent eb42373 commit 986e24a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/Database/Explorer/Selection.insert().multi.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $explorer = connectToDB();
1414
Nette\Database\Helpers::loadFromFile($explorer, __DIR__ . "/../files/{$driverName}-nette_test1.sql");
1515

1616

17-
test('multi-insert on autoincrement table returns int row count', function () use ($explorer) {
17+
test('', function () use ($explorer) {
1818
Assert::same(3, $explorer->table('author')->count());
1919
$result = $explorer->table('author')->insert([
2020
[
@@ -31,9 +31,7 @@ test('multi-insert on autoincrement table returns int row count', function () us
3131
Assert::type('int', $result);
3232
Assert::same(2, $result);
3333
Assert::same(5, $explorer->table('author')->count());
34-
});
3534

36-
test('multi-insert on composite primary key table returns int row count', function () use ($explorer) {
3735
$explorer->table('book_tag')->where('book_id', 1)->delete(); // DELETE FROM `book_tag` WHERE (`book_id` = ?)
3836

3937
Assert::same(4, $explorer->table('book_tag')->count());

0 commit comments

Comments
 (0)