Unverified Commit 119028bc authored by alexpott's avatar alexpott

Issue #3107732 by mondrake, longwave, swatichouhan012, salah1, xjm, catch,...

Issue #3107732 by mondrake, longwave, swatichouhan012, salah1, xjm, catch, alexpott, Berdir: Between April 13 and April 17, 2020: Add return typehints to setUp/tearDown methods in concrete test classes
parent 9559bde3

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -26,7 +26,7 @@ class ActionFormAjaxTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$user = $this->drupalCreateUser(['administer actions']);
$this->drupalLogin($user);
......
......@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->executeMigration('action_settings');
}
......
......@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->executeMigration('d6_action');
}
......
......@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->executeMigration('action_settings');
}
......
......@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->executeMigration('d7_action');
}
......
......@@ -11,7 +11,7 @@
*/
class ActionLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() {
protected function setUp(): void {
$this->directoryList = ['action' => 'core/modules/action'];
parent::setUp();
}
......
......@@ -16,7 +16,7 @@ class AddFeedTest extends AggregatorTestBase {
*/
protected $defaultTheme = 'stark';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalPlaceBlock('page_title_block');
......
......@@ -21,7 +21,7 @@ class AggregatorDisplayConfigurableTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalPlaceBlock('page_title_block');
......
......@@ -24,7 +24,7 @@ class AggregatorRenderingTest extends AggregatorTestBase {
*/
protected $defaultTheme = 'stark';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalPlaceBlock('page_title_block');
......
......@@ -27,7 +27,7 @@ class FeedCacheTagsTest extends EntityWithUriCacheTagsTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify
......
......@@ -19,7 +19,7 @@ class FeedFetcherPluginTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Enable test plugins.
$this->enableTestPlugins();
......
......@@ -36,7 +36,7 @@ class FeedLanguageTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create test languages.
......
......@@ -23,7 +23,7 @@ class FeedParserTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Do not delete old aggregator items during these tests, since our sample
// feeds have hardcoded dates in them (which may be expired when this test
......
......@@ -22,7 +22,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Enable test plugins.
$this->enableTestPlugins();
......
......@@ -26,7 +26,7 @@ class ImportOpmlTest extends AggregatorTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$admin_user = $this->drupalCreateUser(['administer news feeds', 'access news feeds', 'create article content', 'administer blocks']);
......
......@@ -29,7 +29,7 @@ class ItemCacheTagsTest extends EntityCacheTagsTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify
......
......@@ -30,7 +30,7 @@ class AggregatorTitleTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installConfig(['field']);
......
......@@ -22,7 +22,7 @@ class FeedValidationTest extends EntityKernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
}
......
......@@ -20,7 +20,7 @@ class ItemWithoutFeedTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item');
......
......@@ -22,7 +22,7 @@ class MigrateAggregatorStubTest extends MigrateDrupalTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item');
......
......@@ -22,7 +22,7 @@ class MigrateAggregatorConfigsTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->executeMigration('d6_aggregator_settings');
}
......
......@@ -20,7 +20,7 @@ class MigrateAggregatorFeedTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->executeMigration('d6_aggregator_feed');
......
......@@ -20,7 +20,7 @@ class MigrateAggregatorItemTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item');
......
......@@ -20,7 +20,7 @@ class MigrateAggregatorFeedTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->executeMigration('d7_aggregator_feed');
......
......@@ -20,7 +20,7 @@ class MigrateAggregatorItemTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item');
......
......@@ -16,7 +16,7 @@ class MigrateAggregatorSettingsTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installConfig(static::$modules);
$this->executeMigration('d7_aggregator_settings');
......
......@@ -20,7 +20,7 @@ class AggregatorFeedViewsFieldAccessTest extends FieldFieldAccessTestBase {
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE) {
protected function setUp($import_test_views = TRUE): void {
parent::setUp($import_test_views);
$this->installEntitySchema('aggregator_feed');
......
......@@ -21,7 +21,7 @@ class AggregatorItemViewsFieldAccessTest extends FieldFieldAccessTestBase {
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE) {
protected function setUp($import_test_views = TRUE): void {
parent::setUp($import_test_views);
$this->installEntitySchema('aggregator_feed');
......
......@@ -48,7 +48,7 @@ class IntegrationTest extends ViewsKernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE) {
protected function setUp($import_test_views = TRUE): void {
parent::setUp();
$this->installEntitySchema('aggregator_item');
......
......@@ -14,7 +14,7 @@ class AggregatorLocalTasksTest extends LocalTaskIntegrationTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
$this->directoryList = ['aggregator' => 'core/modules/aggregator'];
parent::setUp();
}
......
......@@ -38,7 +38,7 @@ class AggregatorPluginSettingsBaseTest extends UnitTestCase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
$this->configFactory = $this->getConfigFactoryStub(
[
'aggregator.settings' => [
......
......@@ -24,7 +24,7 @@ class MigrateBlockedIpsTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installSchema('ban', ['ban_ip']);
$this->executeMigration('d7_blocked_ips');
......
......@@ -38,7 +38,7 @@ class BanMiddlewareTest extends UnitTestCase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->kernel = $this->createMock('Symfony\Component\HttpKernel\HttpKernelInterface');
......
......@@ -46,7 +46,7 @@ class BigPipeTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Ignore the <meta> refresh that big_pipe.module sets. It causes a redirect
......
......@@ -42,7 +42,7 @@ class BigPipeRegressionTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
public function setUp(): void {
parent::setUp();
// Use the big_pipe_test_theme theme.
......
......@@ -52,7 +52,7 @@ class BlockCacheTest extends BrowserTestBase {
*/
protected $block;
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create an admin user, log in and enable test blocks.
......
......@@ -27,7 +27,7 @@ class BlockFormInBlockTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Enable our test block.
......
......@@ -29,7 +29,7 @@ class BlockHiddenRegionTest extends BrowserTestBase {
*/
protected $defaultTheme = 'classy';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create administrative user.
......
......@@ -23,7 +23,7 @@ class BlockHookOperationTest extends BrowserTestBase {
*/
protected $defaultTheme = 'stark';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$permissions = [
......
......@@ -23,7 +23,7 @@ class BlockHtmlTest extends BrowserTestBase {
*/
protected $defaultTheme = 'classy';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalLogin($this->rootUser);
......
......@@ -25,7 +25,7 @@ class BlockInvalidRegionTest extends BrowserTestBase {
*/
protected $defaultTheme = 'classy';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create an admin user.
$admin_user = $this->drupalCreateUser([
......
......@@ -31,7 +31,7 @@ class BlockLanguageCacheTest extends BrowserTestBase {
*/
protected $langcodes = [];
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create test languages.
......
......@@ -30,7 +30,7 @@ class BlockLanguageTest extends BrowserTestBase {
*/
protected $defaultTheme = 'stark';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser(['administer blocks', 'administer languages']);
......
......@@ -24,7 +24,7 @@ class BlockRenderOrderTest extends BrowserTestBase {
*/
protected $defaultTheme = 'stark';
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create a test user.
$end_user = $this->drupalCreateUser([
......
......@@ -24,7 +24,7 @@ class BlockSystemBrandingTest extends BlockTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Set a site slogan.
$this->config('system.site')
......
......@@ -47,7 +47,7 @@ class BlockUiTest extends BrowserTestBase {
*/
protected $adminUser;
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create and log in an administrative user.
$this->adminUser = $this->drupalCreateUser([
......
......@@ -26,7 +26,7 @@ class NonDefaultBlockAdminTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalPlaceBlock('local_tasks_block');
......
......@@ -48,7 +48,7 @@ class DisplayBlockTest extends ViewTestBase {
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE) {
protected function setUp($import_test_views = TRUE): void {
parent::setUp($import_test_views);
ViewTestData::createTestViews(get_class($this), ['block_test_views']);
......
......@@ -25,7 +25,7 @@ class BlockFilterTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$admin_user = $this->drupalCreateUser([
......
......@@ -51,7 +51,7 @@ class BlockConfigSchemaTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->typedConfig = \Drupal::service('config.typed');
......
......@@ -24,7 +24,7 @@ class BlockRebuildTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->container->get('theme_installer')->install(['stable', 'classy']);
......@@ -34,7 +34,7 @@ protected function setUp() {
/**
* {@inheritdoc}
*/
public static function setUpBeforeClass() {
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
// @todo Once block_rebuild() is refactored to auto-loadable code, remove
......
......@@ -30,7 +30,7 @@ class BlockStorageUnitTest extends KernelTestBase {
*/
protected $controller;
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->controller = $this->container->get('entity_type.manager')->getStorage('block');
......
......@@ -46,7 +46,7 @@ class BlockViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->controller = $this->container
......
......@@ -32,7 +32,7 @@ class MigrateBlockContentTranslationTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->installEntitySchema('block_content');
$this->installConfig(['block']);
......
......@@ -33,7 +33,7 @@ class MigrateBlockTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Install the themes used for this test.
......
......@@ -36,7 +36,7 @@ class MigrateBlockContentTranslationTest extends MigrateDrupal7TestBase {
/**