You are here

public function LegacyFileTest::setUp in Drupal 8

File

core/modules/file/tests/src/Unit/LegacyFileTest.php, line 31

Class

LegacyFileTest
Provides unit tests for file module deprecation errors.

Namespace

Drupal\Tests\file\Unit

Code

public function setUp() {
  parent::setUp();
  $this->configFactory = $this
    ->prophesize(ConfigFactoryInterface::class)
    ->reveal();
  $container = new ContainerBuilder();
  $container
    ->set('config.factory', $this->configFactory);
  \Drupal::setContainer($container);
}