protected function EntityShareCronServiceTest::createEntity in Entity Share Cron 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/EntityShareCronServiceTest.php \Drupal\Tests\entity_share_cron\Unit\EntityShareCronServiceTest::createEntity()
Creates a mocked entity with the specified UUID.
2 calls to EntityShareCronServiceTest::createEntity()
- EntityShareCronServiceTest::testSynchronizationCreateOnly in tests/
src/ Unit/ EntityShareCronServiceTest.php - Tests synchronization when only entity creation is allowed.
- EntityShareCronServiceTest::testSynchronizationUpdateOnly in tests/
src/ Unit/ EntityShareCronServiceTest.php - Tests synchronization when only entity update is allowed.
File
- tests/
src/ Unit/ EntityShareCronServiceTest.php, line 253
Class
- EntityShareCronServiceTest
- @coversDefaultClass \Drupal\entity_share_cron\EntityShareCronService @group entity_share_cron
Namespace
Drupal\Tests\entity_share_cron\UnitCode
protected function createEntity($uuid) {
$entity = $this
->getMock('Drupal\\Core\\Entity\\EntityInterface');
$entity
->expects($this
->any())
->method('uuid')
->will($this
->returnValue($uuid));
return $entity;
}