Unverified Commit 119028bc authored by alexpott's avatar alexpott
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 9559bde3
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment