public function RedirectAPITest::setUp in Redirect 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ RedirectAPITest.php, line 35
Class
- RedirectAPITest
- Redirect entity and redirect API test coverage.
Namespace
Drupal\Tests\redirect\KernelCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('redirect');
$this
->installEntitySchema('user');
$this
->installConfig([
'redirect',
]);
$language = ConfigurableLanguage::createFromLangcode('de');
$language
->save();
$this->storage = $this->container
->get('entity_type.manager')
->getStorage('redirect');
}