Skip to content

Commit e28461e

Browse files
committed
Fix tests
A few small changes to fix tests. Error messages have changed.
1 parent 7e2a0a7 commit e28461e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/Database/Builder/InsertTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function testInsertBatchThrowsExceptionOnNoData()
265265
$builder = $this->db->table('jobs');
266266

267267
$this->expectException(DatabaseException::class);
268-
$this->expectExceptionMessage('You must use the "set" method to update an entry.');
268+
$this->expectExceptionMessage('No data availble to process.');
269269
$builder->insertBatch();
270270
}
271271

@@ -274,7 +274,7 @@ public function testInsertBatchThrowsExceptionOnEmptyData()
274274
$builder = $this->db->table('jobs');
275275

276276
$this->expectException(DatabaseException::class);
277-
$this->expectExceptionMessage('insertBatch() called with no data');
277+
$this->expectExceptionMessage('setData() has no data.');
278278
$builder->insertBatch([]);
279279
}
280280
}

0 commit comments

Comments
 (0)