function LegacyFileTest::setUp
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\UnitCode
public function setUp() {
parent::setUp();
$this->configFactory = $this->prophesize(ConfigFactoryInterface::class)
->reveal();
$container = new ContainerBuilder();
$container->set('config.factory', $this->configFactory);
\Drupal::setContainer($container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.