Changes for core/modules/dblog/src/Tests/DbLogTest.php: 16 added lines, 16 removed lines.
Original line number
Diff line number
Diff line
@@ -31,23 +31,23 @@ class DbLogTest extends WebTestBase {
/**
* A user with some relevant administrative permissions.
*
* @var object
* @var \Drupal\user\UserInterface
*/
protected$big_user;
protected$adminUser;
/**
* A user without any permissions.
*
* @var object
* @var \Drupal\user\UserInterface
*/
protected$any_user;
protected$webUser;
protectedfunctionsetUp(){
parent::setUp();
// Create users with specific permissions.
$this->big_user=$this->drupalCreateUser(array('administer site configuration','access administration pages','access site reports','administer users'));
$this->any_user=$this->drupalCreateUser(array());
$this->adminUser=$this->drupalCreateUser(array('administer site configuration','access administration pages','access site reports','administer users'));
$this->assertTrue($count_before>0,format_string('DBLog contains @count records for @name',array('@count'=>$count_before,'@name'=>$user->getUsername())));
// Login the admin user.
$this->drupalLogin($this->big_user);
$this->drupalLogin($this->adminUser);
// Delete the user created at the start of this test.
// We need to POST here to invoke batch_process() in the internal browser.
@@ -462,7 +462,7 @@ protected function testDBLogAddAndClear() {
// Make sure the table count has actually been incremented.
$this->assertEqual($count+1,db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField(),format_string('\Drupal\dblog\Logger\DbLog->log() added an entry to the dblog :count',array(':count'=>$count)));