protected function FileLinkValidationTest::setUp in File Link 8
Same name and namespace in other branches
- 2.0.x tests/src/Kernel/FileLinkValidationTest.php \Drupal\Tests\file_link\Kernel\FileLinkValidationTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ FileLinkValidationTest.php, line 41
Class
- FileLinkValidationTest
- Provides kernel tests for 'file_link' field type.
Namespace
Drupal\Tests\file_link\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'file_link_test',
]);
$this
->installEntitySchema('entity_test');
$this->entity = EntityTest::create([
'name' => 'Foo',
'type' => 'article',
]);
// Disable redirect on validation.
$settings = Settings::getAll();
$settings['file_link.follow_redirect_on_validate'] = FALSE;
new Settings($settings);
}