From a34d3e26dd9f30a325f063ddd2d73302480c8427 Mon Sep 17 00:00:00 2001 From: JvE Date: Tue, 11 Jul 2017 08:51:36 +0200 Subject: [PATCH 1/4] Only initialize module once. --- src/Module/Drupal7/Drupal7.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Module/Drupal7/Drupal7.php b/src/Module/Drupal7/Drupal7.php index 43dc1c8..3532909 100644 --- a/src/Module/Drupal7/Drupal7.php +++ b/src/Module/Drupal7/Drupal7.php @@ -18,15 +18,17 @@ class Drupal7 extends DrupalBaseModule implements DrupalModuleInterface use Asserts; use EntityTrait; use FieldTrait; + protected $initialized; - /** + /** * { @inheritdoc } */ public function _initialize() { - - $this->bootstrapDrupal(); - + if (!$this->initialized) { + $this->bootstrapDrupal(); + $this->initialized = TRUE; + } } /** From 4e4a71365ff7aa7ebb7129122955a01a3c353b65 Mon Sep 17 00:00:00 2001 From: JvE Date: Tue, 11 Jul 2017 08:51:36 +0200 Subject: [PATCH 2/4] Only initialize module once. --- src/Module/Drupal7/Drupal7.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Module/Drupal7/Drupal7.php b/src/Module/Drupal7/Drupal7.php index 43dc1c8..3532909 100644 --- a/src/Module/Drupal7/Drupal7.php +++ b/src/Module/Drupal7/Drupal7.php @@ -18,15 +18,17 @@ class Drupal7 extends DrupalBaseModule implements DrupalModuleInterface use Asserts; use EntityTrait; use FieldTrait; + protected $initialized; - /** + /** * { @inheritdoc } */ public function _initialize() { - - $this->bootstrapDrupal(); - + if (!$this->initialized) { + $this->bootstrapDrupal(); + $this->initialized = TRUE; + } } /** From 62f05687be941f894460fcc234e93100b6e002d7 Mon Sep 17 00:00:00 2001 From: Joris van Eijden Date: Fri, 16 Oct 2020 15:31:05 +0200 Subject: [PATCH 3/4] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index beca045..860a25c 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "codeception/codeception": "2.*" + "codeception/codeception": "*" }, "autoload": { "psr-4": { @@ -33,7 +33,7 @@ "require-dev": { "squizlabs/php_codesniffer": "2.1.0", "satooshi/php-coveralls": "dev-master", - "mikey179/vfsStream": "1.4.*", + "mikey179/vfsstream": "1.4.*", "phpspec/prophecy": "~1.3@dev" }, "repositories": [ From 9a1d2568d7ec2e698a7ba9db78fe01307a4838e5 Mon Sep 17 00:00:00 2001 From: Joris van Eijden Date: Fri, 16 Oct 2020 15:38:32 +0200 Subject: [PATCH 4/4] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 860a25c..b79590a 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "droptica/codeception-drupal-bootstrap", + "name": "codeception/module-drupal", "description": "A module for Codeception that exposes the Drupal API to test suites.", "license": "MIT", "authors": [