Commit 7d1ee8a8 authored by larowlan's avatar larowlan

Test changes

parent 547bbda5
......@@ -7,6 +7,7 @@
namespace Drupal\default_content\Tests;
use Drupal\simpletest\WebTestBase;
use Drupal\taxonomy\Entity\Vocabulary;
/**
* Test import of default content.
......@@ -44,7 +45,7 @@ class DefaultContentTest extends WebTestBase {
// Content is always imported as anonymous.
$this->assertEqual($node->uid->target_id, 0);
$this->assertEqual($node->getType(), 'page');
$terms = \Drupal::entityManager()->getStorageController('taxonomy_term')->loadMultiple();
$terms = \Drupal::entityManager()->getStorage('taxonomy_term')->loadMultiple();
$term = reset($terms);
$this->assertTrue(!empty($term));
$this->assertEqual($term->name->value, 'A tag');
......
......@@ -3,6 +3,7 @@ uuid: F6002796-DE9D-4F8B-A8A5-693B7494C125
status: true
langcode: en
field_uuid: A071BBC8-924B-4100-9BF4-3036D9BBDCF3
field_name: field_tags
entity_type: node
bundle: page
label: Tags
......@@ -12,3 +13,7 @@ default_value: { }
default_value_function: ''
settings: { }
field_type: taxonomy_term_reference
dependencies:
entity:
- field.storage.node.field_tags
- node.type.page
......@@ -17,3 +17,7 @@ locked: false
cardinality: '1'
translatable: false
indexes: { }
dependencies:
module:
- node
- taxonomy
......@@ -120,7 +120,7 @@
"value": "1381646540"
}
],
"log": [
"revision_log": [
{
"value": ""
}
......
......@@ -37,11 +37,6 @@
"value":""
}
],
"format":[
{
"value":"plain_text"
}
],
"weight":[
{
"value":"0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment