Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Fix enabled module check.
Browse files Browse the repository at this point in the history
  • Loading branch information
guncha25 committed Jun 21, 2017
1 parent af04897 commit 7fb42fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Codeception/Module/DrupalBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(ModuleContainer $container, $config = null) {
* Setup Test environment.
*/
public function _beforeSuite($settings = []) {
if (\Drupal::moduleHandler()->isLoaded('dblog')) {
if (\Drupal::moduleHandler()->moduleExists('dblog')) {
// Clear log entries from the database log.
\Drupal::database()->truncate('watchdog')->execute();
}
Expand All @@ -75,7 +75,7 @@ public function _afterSuite() {
}
}

if (\Drupal::moduleHandler()->isLoaded('dblog')) {
if (\Drupal::moduleHandler()->moduleExists('dblog')) {
// Load any database log entries of level WARNING or more serious.
$query = \Drupal::database()->select('watchdog', 'w');
$query->fields('w', ['type', 'severity', 'message', 'variables'])
Expand Down

0 comments on commit 7fb42fb

Please sign in to comment.