You are here

public static function Framework::testSetEntityProperty in Realistic Dummy Content 7.2

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::testSetEntityProperty()
  2. 3.x api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::testSetEntityProperty()

Tests self::setEntityProperty().

1 call to Framework::testSetEntityProperty()
Framework::testGetEntityProperty in api/src/Framework/Framework.php
Tests self::getEntityProperty().

File

api/src/Framework/Framework.php, line 507

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public static function testSetEntityProperty() {
  $entity = self::instance()
    ->createEntity();
  self::instance()
    ->setEntityProperty($entity, 'title', 'whatever');
  return self::instance()
    ->getEntityProperty($entity, 'title') != 'whatever';
}