Commit 0463b81a authored by alexpott's avatar alexpott
Browse files

Issue #2322889 by sun: Fixed Various setUp() and tearDown() methods are not protected.

parent f1713d57
......@@ -16,7 +16,7 @@
*/
class ActionLocalTasksTest extends LocalTaskIntegrationTest {
public function setUp() {
protected function setUp() {
$this->directoryList = array('action' => 'core/modules/action');
parent::setUp();
}
......
......@@ -23,7 +23,7 @@ abstract class AggregatorTestBase extends WebTestBase {
*/
public static $modules = array('node', 'aggregator', 'aggregator_test', 'views');
function setUp() {
protected function setUp() {
parent::setUp();
// Create an Article node type.
......
......@@ -30,7 +30,7 @@ public static function getInfo() {
/**
* {@inheritdoc}
*/
public function setUp() {
protected function setUp() {
parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify
......
......@@ -15,7 +15,7 @@
*/
class FeedFetcherPluginTest extends AggregatorTestBase {
public function setUp() {
protected function setUp() {
parent::setUp();
// Enable test plugins.
$this->enableTestPlugins();
......
......@@ -30,7 +30,7 @@ class FeedLanguageTest extends AggregatorTestBase {
*/
protected $langcodes = array();
public function setUp() {
protected function setUp() {
parent::setUp();
// Create test languages.
......
......@@ -15,7 +15,7 @@
* @group aggregator
*/
class FeedParserTest extends AggregatorTestBase {
function setUp() {
protected function setUp() {
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
......
......@@ -18,7 +18,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
/**
* Overrides \Drupal\simpletest\WebTestBase::setUp().
*/
public function setUp() {
protected function setUp() {
parent::setUp();
// Enable test plugins.
$this->enableTestPlugins();
......
......@@ -21,7 +21,7 @@ class ImportOpmlTest extends AggregatorTestBase {
*/
public static $modules = array('block');
function setUp() {
protected function setUp() {
parent::setUp();
$admin_user = $this->drupalCreateUser(array('administer news feeds', 'access news feeds', 'create article content', 'administer blocks'));
......
......@@ -31,7 +31,7 @@ public static function getInfo() {
/**
* {@inheritdoc}
*/
public function setUp() {
protected function setUp() {
parent::setUp();
// Give anonymous users permission to access feeds, so that we can verify
......
......@@ -16,7 +16,7 @@
*/
class AggregatorLocalTasksTest extends LocalTaskIntegrationTest {
public function setUp() {
protected function setUp() {
$this->directoryList = array('aggregator' => 'core/modules/aggregator');
parent::setUp();
}
......
......@@ -39,7 +39,7 @@ class AggregatorPluginSettingsBaseTest extends UnitTestCase {
*/
protected $managers;
public function setUp() {
protected function setUp() {
$this->configFactory = $this->getConfigFactoryStub(
array(
'aggregator.settings' => array(
......
......@@ -35,7 +35,7 @@ class BlockCacheTest extends WebTestBase {
*/
protected $block;
function setUp() {
protected function setUp() {
parent::setUp();
// Create an admin user, log in and enable test blocks.
......
......@@ -29,7 +29,7 @@ class BlockHiddenRegionTest extends WebTestBase {
*/
public static $modules = array('block', 'block_test', 'search');
function setUp() {
protected function setUp() {
parent::setUp();
// Create administrative user.
......
......@@ -24,7 +24,7 @@ class BlockHookOperationTest extends WebTestBase {
*/
public static $modules = array('block', 'entity_test');
public function setUp() {
protected function setUp() {
parent::setUp();
$permissions = array(
......
......@@ -23,7 +23,7 @@ class BlockHtmlTest extends WebTestBase {
*/
public static $modules = array('block', 'block_test');
function setUp() {
protected function setUp() {
parent::setUp();
$this->drupalLogin($this->root_user);
......
......@@ -24,7 +24,7 @@ class BlockInvalidRegionTest extends WebTestBase {
*/
public static $modules = array('block', 'block_test');
function setUp() {
protected function setUp() {
parent::setUp();
// Create an admin user.
$admin_user = $this->drupalCreateUser(array(
......
......@@ -32,7 +32,7 @@ class BlockLanguageCacheTest extends WebTestBase {
*/
protected $langcodes = array();
public function setUp() {
protected function setUp() {
parent::setUp();
// Create test languages.
......
......@@ -29,7 +29,7 @@ class BlockLanguageTest extends WebTestBase {
*/
public static $modules = array('language', 'block');
function setUp() {
protected function setUp() {
parent::setUp();
// Create a new user, allow him to manage the blocks and the languages.
......
......@@ -23,7 +23,7 @@ class BlockRenderOrderTest extends WebTestBase {
*/
public static $modules = array('node', 'block');
function setUp() {
protected function setUp() {
parent::setUp();
// Create a test user.
$end_user = $this->drupalCreateUser(array(
......
......@@ -24,7 +24,7 @@ class BlockSystemBrandingTest extends BlockTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
protected function setUp() {
parent::setUp();
// Set a site slogan.
\Drupal::config('system.site')
......
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