Skip to content
Snippets Groups Projects
Unverified Commit 0dc28534 authored by Alex Pott's avatar Alex Pott
Browse files

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 aafcd8d6
No related branches found
No related tags found
8 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage",!13Resolve #2903456
Showing
with 20 additions and 20 deletions
...@@ -26,7 +26,7 @@ class ActionFormAjaxTest extends WebDriverTestBase { ...@@ -26,7 +26,7 @@ class ActionFormAjaxTest extends WebDriverTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$user = $this->drupalCreateUser(['administer actions']); $user = $this->drupalCreateUser(['administer actions']);
$this->drupalLogin($user); $this->drupalLogin($user);
......
...@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal6TestBase { ...@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal6TestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->executeMigration('action_settings'); $this->executeMigration('action_settings');
} }
......
...@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal6TestBase { ...@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal6TestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->executeMigration('d6_action'); $this->executeMigration('d6_action');
} }
......
...@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal7TestBase { ...@@ -22,7 +22,7 @@ class MigrateActionConfigsTest extends MigrateDrupal7TestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->executeMigration('action_settings'); $this->executeMigration('action_settings');
} }
......
...@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal7TestBase { ...@@ -17,7 +17,7 @@ class MigrateActionsTest extends MigrateDrupal7TestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->executeMigration('d7_action'); $this->executeMigration('d7_action');
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
class ActionLocalTasksTest extends LocalTaskIntegrationTestBase { class ActionLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() { protected function setUp(): void {
$this->directoryList = ['action' => 'core/modules/action']; $this->directoryList = ['action' => 'core/modules/action'];
parent::setUp(); parent::setUp();
} }
......
...@@ -16,7 +16,7 @@ class AddFeedTest extends AggregatorTestBase { ...@@ -16,7 +16,7 @@ class AddFeedTest extends AggregatorTestBase {
*/ */
protected $defaultTheme = 'stark'; protected $defaultTheme = 'stark';
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->drupalPlaceBlock('page_title_block'); $this->drupalPlaceBlock('page_title_block');
......
...@@ -21,7 +21,7 @@ class AggregatorDisplayConfigurableTest extends AggregatorTestBase { ...@@ -21,7 +21,7 @@ class AggregatorDisplayConfigurableTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->drupalPlaceBlock('page_title_block'); $this->drupalPlaceBlock('page_title_block');
......
...@@ -24,7 +24,7 @@ class AggregatorRenderingTest extends AggregatorTestBase { ...@@ -24,7 +24,7 @@ class AggregatorRenderingTest extends AggregatorTestBase {
*/ */
protected $defaultTheme = 'stark'; protected $defaultTheme = 'stark';
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->drupalPlaceBlock('page_title_block'); $this->drupalPlaceBlock('page_title_block');
......
...@@ -27,7 +27,7 @@ class FeedCacheTagsTest extends EntityWithUriCacheTagsTestBase { ...@@ -27,7 +27,7 @@ class FeedCacheTagsTest extends EntityWithUriCacheTagsTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify // Give anonymous users permission to access feeds, so that we can verify
......
...@@ -19,7 +19,7 @@ class FeedFetcherPluginTest extends AggregatorTestBase { ...@@ -19,7 +19,7 @@ class FeedFetcherPluginTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Enable test plugins. // Enable test plugins.
$this->enableTestPlugins(); $this->enableTestPlugins();
......
...@@ -36,7 +36,7 @@ class FeedLanguageTest extends AggregatorTestBase { ...@@ -36,7 +36,7 @@ class FeedLanguageTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Create test languages. // Create test languages.
......
...@@ -23,7 +23,7 @@ class FeedParserTest extends AggregatorTestBase { ...@@ -23,7 +23,7 @@ class FeedParserTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Do not delete old aggregator items during these tests, since our sample // 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 // feeds have hardcoded dates in them (which may be expired when this test
......
...@@ -22,7 +22,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase { ...@@ -22,7 +22,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Enable test plugins. // Enable test plugins.
$this->enableTestPlugins(); $this->enableTestPlugins();
......
...@@ -26,7 +26,7 @@ class ImportOpmlTest extends AggregatorTestBase { ...@@ -26,7 +26,7 @@ class ImportOpmlTest extends AggregatorTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$admin_user = $this->drupalCreateUser(['administer news feeds', 'access news feeds', 'create article content', 'administer blocks']); $admin_user = $this->drupalCreateUser(['administer news feeds', 'access news feeds', 'create article content', 'administer blocks']);
......
...@@ -29,7 +29,7 @@ class ItemCacheTagsTest extends EntityCacheTagsTestBase { ...@@ -29,7 +29,7 @@ class ItemCacheTagsTest extends EntityCacheTagsTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify // Give anonymous users permission to access feeds, so that we can verify
......
...@@ -30,7 +30,7 @@ class AggregatorTitleTest extends KernelTestBase { ...@@ -30,7 +30,7 @@ class AggregatorTitleTest extends KernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->installConfig(['field']); $this->installConfig(['field']);
......
...@@ -22,7 +22,7 @@ class FeedValidationTest extends EntityKernelTestBase { ...@@ -22,7 +22,7 @@ class FeedValidationTest extends EntityKernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->installEntitySchema('aggregator_feed'); $this->installEntitySchema('aggregator_feed');
} }
......
...@@ -20,7 +20,7 @@ class ItemWithoutFeedTest extends KernelTestBase { ...@@ -20,7 +20,7 @@ class ItemWithoutFeedTest extends KernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->installEntitySchema('aggregator_feed'); $this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item'); $this->installEntitySchema('aggregator_item');
......
...@@ -22,7 +22,7 @@ class MigrateAggregatorStubTest extends MigrateDrupalTestBase { ...@@ -22,7 +22,7 @@ class MigrateAggregatorStubTest extends MigrateDrupalTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->installEntitySchema('aggregator_feed'); $this->installEntitySchema('aggregator_feed');
$this->installEntitySchema('aggregator_item'); $this->installEntitySchema('aggregator_item');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment