private function DbLogTest::verifyRowLimit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/dblog/src/Tests/DbLogTest.php \Drupal\dblog\Tests\DbLogTest::verifyRowLimit()
Verifies setting of the database log row limit.
Parameters
int $row_limit: The row limit.
1 call to DbLogTest::verifyRowLimit()
- DbLogTest::testDbLog in core/
modules/ dblog/ src/ Tests/ DbLogTest.php - Tests Database Logging module functionality through interfaces.
File
- core/
modules/ dblog/ src/ Tests/ DbLogTest.php, line 97 - Contains \Drupal\dblog\Tests\DbLogTest.
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\dblog\TestsCode
private function verifyRowLimit($row_limit) {
// Change the database log row limit.
$edit = array();
$edit['dblog_row_limit'] = $row_limit;
$this
->drupalPostForm('admin/config/development/logging', $edit, t('Save configuration'));
$this
->assertResponse(200);
// Check row limit variable.
$current_limit = $this
->config('dblog.settings')
->get('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,
)));
}