X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FContentEntityFormTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FContentEntityFormTest.php;h=66a59788c26889e8228c776fdc2fce64c9a73398;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/Tests/Core/Entity/ContentEntityFormTest.php b/web/core/tests/Drupal/Tests/Core/Entity/ContentEntityFormTest.php new file mode 100644 index 000000000..66a59788c --- /dev/null +++ b/web/core/tests/Drupal/Tests/Core/Entity/ContentEntityFormTest.php @@ -0,0 +1,33 @@ +prophesize(EntityManagerInterface::class)->reveal(); + $entity_type_bundle_info = $this->prophesize(EntityTypeBundleInfoInterface::class)->reveal(); + $time = $this->prophesize(TimeInterface::class)->reveal(); + $form = new ContentEntityForm($entity_manager, $entity_type_bundle_info, $time); + + $reflected_form = new \ReflectionClass($form); + $entity_manager_property = $reflected_form->getProperty('entityManager'); + $entity_manager_property->setAccessible(TRUE); + $this->assertTrue($entity_manager_property->getValue($form) === $entity_manager); + } + +}