1.20.x dblog.test | private DBLogTestCase::verifyRowLimit($row_limit) |
Verifies setting of the database log row limit.
Parameters
int $row_limit: The row limit.
File
- modules/
dblog/ tests/ dblog.test, line 67 - Tests for dblog.module.
Class
- DBLogTestCase
- Tests logging messages to the database.
Code
private function verifyRowLimit($row_limit) {
// Change the database log row limit.
$edit = array();
$edit['dblog_row_limit'] = $row_limit;
$this->backdropPost('admin/config/development/logging', $edit, t('Save configuration'));
$this->assertResponse(200);
// Check row limit variable.
$current_limit = config_get('system.core', 'log_row_limit');
$this->assertTrue($current_limit == $row_limit, format_string('[Cache] Row limit variable of @count equals row limit of @limit', array('@count' => $current_limit, '@limit' => $row_limit)));
}