* @covers ::set
*/
public function testSet() {
- $id_items = [ ['value' => $this->id + 1] ];
+ $id_items = [['value' => $this->id + 1]];
$this->fieldItemList->expects($this->once())
->method('setValue')
*/
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);
}
$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]);
}
/**