public static function Framework::testSetEntityProperty in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::testSetEntityProperty()
- 7.2 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 504
Class
- Framework
- The entry point for the framework.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public static function testSetEntityProperty() {
$entity = self::instance()
->createEntity();
self::instance()
->setEntityProperty($entity, 'title', 'whatever');
return self::instance()
->getEntityProperty($entity, 'title') != 'whatever';
}