X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FTypedData%2FEntityAdapterUnitTest.php;h=c64e507e2b40689252158b1f1636eb21b881eab7;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=953daac8879baef6e90ddaa5bc6570db45310617;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php b/web/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php index 953daac88..c64e507e2 100644 --- a/web/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php +++ b/web/core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @@ -295,7 +295,7 @@ class EntityAdapterUnitTest extends UnitTestCase { * @covers ::set */ public function testSet() { - $id_items = [ ['value' => $this->id + 1] ]; + $id_items = [['value' => $this->id + 1]]; $this->fieldItemList->expects($this->once()) ->method('setValue') @@ -309,7 +309,7 @@ class EntityAdapterUnitTest extends UnitTestCase { */ public function testSetWithoutData() { $this->entityAdapter->setValue(NULL); - $id_items = [ ['value' => $this->id + 1] ]; + $id_items = [['value' => $this->id + 1]]; $this->setExpectedException(MissingDataException::class); $this->entityAdapter->set('id', $id_items); } @@ -372,7 +372,7 @@ class EntityAdapterUnitTest extends UnitTestCase { $definition = $this->entityAdapter->getDataDefinition(); $this->assertInstanceOf('\Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface', $definition); $this->assertEquals($definition->getEntityTypeId(), $this->entityTypeId); - $this->assertEquals($definition->getBundles(), [ $this->bundle ]); + $this->assertEquals($definition->getBundles(), [$this->bundle]); } /**