diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php index 1528cbc..00b1fcd 100644 --- a/core/modules/rest/src/Tests/RESTTestBase.php +++ b/core/modules/rest/src/Tests/RESTTestBase.php @@ -56,7 +56,7 @@ protected function setUp() { $this->defaultMimeType = 'application/hal+json'; $this->defaultAuth = array('cookie'); // Create a test content type for node testing if appropriate. - if (in_array('node', self::$modules)) { + if (\Drupal::moduleHandler()->moduleExists('node')) { $this->drupalCreateContentType(array('name' => 'resttest', 'type' => 'resttest')); } }