public function PasswordTest::setUp in Feeds 8.3
Same name in this branch
- 8.3 tests/src/Functional/Feeds/Target/PasswordTest.php \Drupal\Tests\feeds\Functional\Feeds\Target\PasswordTest::setUp()
- 8.3 tests/src/Unit/Feeds/Target/PasswordTest.php \Drupal\Tests\feeds\Unit\Feeds\Target\PasswordTest::setUp()
Overrides FeedsUnitTestCase::setUp
File
- tests/
src/ Unit/ Feeds/ Target/ PasswordTest.php, line 28
Class
- PasswordTest
- @coversDefaultClass \Drupal\feeds\Feeds\Target\Password @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\TargetCode
public function setUp() {
$this->passwordHasher = $this
->prophesize(PasswordInterface::class);
$container = new ContainerBuilder();
$container
->set('string_translation', $this
->getStringTranslationStub());
\Drupal::setContainer($container);
}