Update to Drupal 8.0.5. For more information, see https://www.drupal.org/node/2679347
This commit is contained in:
parent
2a9f1f148d
commit
fd3b12cf27
251 changed files with 5439 additions and 957 deletions
|
@ -7,6 +7,7 @@
|
|||
namespace Drupal\serialization\Tests;
|
||||
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\entity_test\Entity\EntityTestMulRev;
|
||||
|
||||
/**
|
||||
* Tests that entities references can be resolved.
|
||||
|
@ -57,7 +58,7 @@ class EntityResolverTest extends NormalizerTestBase {
|
|||
*/
|
||||
function testUuidEntityResolver() {
|
||||
// Create an entity to get the UUID from.
|
||||
$entity = entity_create('entity_test_mulrev', array('type' => 'entity_test_mulrev'));
|
||||
$entity = EntityTestMulRev::create(array('type' => 'entity_test_mulrev'));
|
||||
$entity->set('name', 'foobar');
|
||||
$entity->set('field_test_entity_reference', array(array('target_id' => 1)));
|
||||
$entity->save();
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
namespace Drupal\serialization\Tests;
|
||||
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\entity_test\Entity\EntityTestMulRev;
|
||||
|
||||
/**
|
||||
* Tests that entities can be serialized to supported core formats.
|
||||
|
@ -81,7 +82,7 @@ class EntitySerializationTest extends NormalizerTestBase {
|
|||
'format' => 'full_html',
|
||||
),
|
||||
);
|
||||
$this->entity = entity_create('entity_test_mulrev', $this->values);
|
||||
$this->entity = EntityTestMulRev::create($this->values);
|
||||
$this->entity->save();
|
||||
|
||||
$this->serializer = $this->container->get('serializer');
|
||||
|
|
Reference in a new issue