function ItemTest::createAnotherEntity
Same name in other branches
- 9 core/modules/aggregator/tests/src/Functional/Jsonapi/ItemTest.php \Drupal\Tests\aggregator\Functional\Jsonapi\ItemTest::createAnotherEntity()
Overrides ResourceTestBase::createAnotherEntity
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ ItemTest.php, line 95
Class
- ItemTest
- JSON:API integration test for the "Item" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function createAnotherEntity($key) {
$duplicate = $this->getEntityDuplicate($this->entity, $key);
$duplicate->setLink('https://www.example.org/');
$duplicate->save();
return $duplicate;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.