Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Entity / TypedData / EntityAdapterUnitTest.php
index 8e909d24bd4fee4200db019bbeb860e35faa6fe6..661bb2afc827c03943ed3e19d72ca9b89b778e3a 100644 (file)
@@ -35,13 +35,6 @@ class EntityAdapterUnitTest extends UnitTestCase {
    */
   protected $entity;
 
-  /**
-   * The config entity used for testing.
-   *
-   * @var \Drupal\Core\Entity\ConfigtEntityBase|\PHPUnit_Framework_MockObject_MockObject
-   */
-  protected $configEntity;
-
   /**
    * The content entity adapter under test.
    *
@@ -49,13 +42,6 @@ class EntityAdapterUnitTest extends UnitTestCase {
    */
   protected $entityAdapter;
 
-  /**
-   * The config entity adapter under test.
-   *
-   * @var \Drupal\Core\Entity\Plugin\DataType\EntityAdapter
-   */
-  protected $configEntityAdapter;
-
   /**
    * The entity type used for testing.
    *
@@ -242,10 +228,6 @@ class EntityAdapterUnitTest extends UnitTestCase {
     $this->entity = $this->getMockForAbstractClass('\Drupal\Core\Entity\ContentEntityBase', [$values, $this->entityTypeId, $this->bundle]);
 
     $this->entityAdapter = EntityAdapter::createFromEntity($this->entity);
-
-    $this->configEntity = $this->getMockForAbstractClass('\Drupal\Core\Config\Entity\ConfigEntityBase', [$values, $this->entityTypeId, $this->bundle]);
-
-    $this->configEntityAdapter = EntityAdapter::createFromEntity($this->configEntity);
   }
 
   /**
@@ -455,11 +437,6 @@ class EntityAdapterUnitTest extends UnitTestCase {
 
     $this->entityAdapter->setValue(NULL);
     $this->assertEquals(new \ArrayIterator([]), $this->entityAdapter->getIterator());
-
-    // Config entity test.
-    $iterator = $this->configEntityAdapter->getIterator();
-    $this->configEntityAdapter->setValue(NULL);
-    $this->assertEquals(new \ArrayIterator([]), $this->entityAdapter->getIterator());
   }
 
 }