summaryrefslogtreecommitdiffstats
path: root/core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php')
-rw-r--r--core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php b/core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php
index eacf9df..c4422aa 100644
--- a/core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php
+++ b/core/modules/jsonld/lib/Drupal/jsonld/Tests/RdfSchemaSerializationTest.php
@@ -15,8 +15,6 @@ use Symfony\Component\Serializer\Serializer;
class RdfSchemaSerializationTest extends DrupalUnitTestBase {
- public static $modules = array('system');
-
public static function getInfo() {
return array(
'name' => 'Site schema JSON-LD serialization',
@@ -29,8 +27,9 @@ class RdfSchemaSerializationTest extends DrupalUnitTestBase {
* Tests the serialization of site schemas.
*/
function testSchemaSerialization() {
- // url() requires the {url_alias} table.
- $this->installSchema('system', 'url_alias');
+ // In order to use url() the url_alias table must be installed, so system
+ // is enabled.
+ $this->enableModules(array('system'));
$entity_type = $bundle = 'entity_test';