Issue #3322003 by poker10: [D7 PHP 8.2] Fix Deprecated function: Creation of dynamic property in tests

merge-requests/3045/head
mcdruid 2022-11-18 11:15:04 +00:00
parent 240afdc691
commit 64871d4fac
42 changed files with 319 additions and 10 deletions

View File

@ -909,6 +909,8 @@ class AggregatorCronTestCase extends AggregatorTestCase {
* Tests rendering functionality in the Aggregator module.
*/
class AggregatorRenderingTestCase extends AggregatorTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Checks display of aggregator items',

View File

@ -676,6 +676,7 @@ class BlockCacheTestCase extends DrupalWebTestCase {
* Test block HTML id validity.
*/
class BlockHTMLIdTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(

View File

@ -263,6 +263,9 @@ class CommentHelperCase extends DrupalWebTestCase {
}
class CommentInterfaceTest extends CommentHelperCase {
protected $web_user2;
protected $comment;
public static function getInfo() {
return array(
'name' => 'Comment interface',

View File

@ -12,6 +12,12 @@
* Tests field storage.
*/
class FieldSqlStorageTestCase extends DrupalWebTestCase {
protected $field;
protected $instance;
protected $field_name;
protected $table;
protected $revision_table;
public static function getInfo() {
return array(
'name' => 'Field SQL storage tests',

View File

@ -9,6 +9,10 @@
* Tests for the 'List' field types.
*/
class ListFieldTestCase extends FieldTestCase {
protected $field;
protected $instance;
protected $field_name;
public static function getInfo() {
return array(
'name' => 'List field',
@ -117,6 +121,12 @@ class ListFieldTestCase extends FieldTestCase {
* Sets up a List field for testing allowed values functions.
*/
class ListDynamicValuesTestCase extends FieldTestCase {
protected $field;
protected $field_name;
protected $instance;
protected $test;
protected $entity;
function setUp() {
parent::setUp(array('list', 'field_test', 'list_test'));
@ -200,6 +210,11 @@ class ListDynamicValuesValidationTestCase extends ListDynamicValuesTestCase {
* List module UI tests.
*/
class ListFieldUITestCase extends FieldTestCase {
protected $type;
protected $hyphen_type;
protected $field_name;
protected $admin_path;
public static function getInfo() {
return array(
'name' => 'List field UI',

View File

@ -6,6 +6,11 @@
*/
class OptionsWidgetsTestCase extends FieldTestCase {
protected $card_1;
protected $card_2;
protected $bool;
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Options widgets',

View File

@ -9,6 +9,8 @@ class TextFieldTestCase extends DrupalWebTestCase {
protected $instance;
protected $admin_user;
protected $web_user;
protected $field;
protected $field_name;
public static function getInfo() {
return array(
@ -238,6 +240,8 @@ class TextFieldTestCase extends DrupalWebTestCase {
}
class TextSummaryTestCase extends DrupalWebTestCase {
protected $article_creator;
public static function getInfo() {
return array(
'name' => 'Text summary',
@ -414,6 +418,10 @@ class TextSummaryTestCase extends DrupalWebTestCase {
}
class TextTranslationTestCase extends DrupalWebTestCase {
protected $format;
protected $admin;
protected $translator;
public static function getInfo() {
return array(
'name' => 'Text translation',

View File

@ -72,6 +72,15 @@ class FieldTestCase extends DrupalWebTestCase {
}
class FieldAttachTestCase extends FieldTestCase {
protected $field_name;
protected $field;
protected $field_id;
protected $instance;
protected $field_name_2;
protected $field_2;
protected $field_id_2;
protected $instance_2;
function setUp() {
// Since this is a base class for many test cases, support the same
// flexibility that DrupalWebTestCase::setUp() has for the modules to be
@ -705,6 +714,8 @@ class FieldAttachStorageTestCase extends FieldAttachTestCase {
* Unit test class for non-storage related field_attach_* functions.
*/
class FieldAttachOtherTestCase extends FieldAttachTestCase {
protected $instance2;
public static function getInfo() {
return array(
'name' => 'Field attach tests (other)',
@ -1605,6 +1616,13 @@ class FieldInfoTestCase extends FieldTestCase {
}
class FieldFormTestCase extends FieldTestCase {
protected $field_single;
protected $field_multiple;
protected $field_unlimited;
protected $field;
protected $field_name;
protected $instance;
public static function getInfo() {
return array(
'name' => 'Field form tests',
@ -2152,6 +2170,15 @@ class FieldFormTestCase extends FieldTestCase {
}
class FieldDisplayAPITestCase extends FieldTestCase {
protected $field;
protected $instance;
protected $field_name;
protected $label;
protected $cardinality;
protected $values;
protected $entity;
protected $is_new;
public static function getInfo() {
return array(
'name' => 'Field Display API tests',
@ -2347,6 +2374,11 @@ class FieldDisplayAPITestCase extends FieldTestCase {
}
class FieldCrudTestCase extends FieldTestCase {
protected $field;
protected $another_field;
protected $instance_definition;
protected $another_instance_definition;
public static function getInfo() {
return array(
'name' => 'Field CRUD tests',
@ -2844,6 +2876,8 @@ class FieldCrudTestCase extends FieldTestCase {
class FieldInstanceCrudTestCase extends FieldTestCase {
protected $field;
protected $instance_definition;
protected $another_instance_definition;
public static function getInfo() {
return array(
@ -3073,6 +3107,11 @@ class FieldInstanceCrudTestCase extends FieldTestCase {
* that only the correct values are returned by field_available_languages().
*/
class FieldTranslationsTestCase extends FieldTestCase {
protected $field;
protected $instance;
protected $field_name;
protected $entity_type;
public static function getInfo() {
return array(
'name' => 'Field translations tests',
@ -3423,6 +3462,12 @@ class FieldTranslationsTestCase extends FieldTestCase {
*/
class FieldBulkDeleteTestCase extends FieldTestCase {
protected $field;
protected $fields;
protected $instances;
protected $entities;
protected $entities_by_bundles;
protected $bundles;
protected $entity_type;
public static function getInfo() {
return array(

View File

@ -9,6 +9,8 @@
* Provides common functionality for the Field UI test classes.
*/
class FieldUITestCase extends DrupalWebTestCase {
protected $type;
protected $hyphen_type;
function setUp() {
// Since this is a base class for many test cases, support the same
@ -134,6 +136,10 @@ class FieldUITestCase extends DrupalWebTestCase {
* Tests the functionality of the 'Manage fields' screen.
*/
class FieldUIManageFieldsTestCase extends FieldUITestCase {
protected $field_label;
protected $field_name_input;
protected $field_name;
public static function getInfo() {
return array(
'name' => 'Manage fields',

View File

@ -373,6 +373,8 @@ class FileTaxonomyTermTestCase extends DrupalWebTestCase {
* that aren't related to fields into it.
*/
class FileManagedFileElementTestCase extends FileFieldTestCase {
protected $originalDisplayErrorsValue;
public static function getInfo() {
return array(
'name' => 'Managed file element test',

View File

@ -173,6 +173,9 @@ class FilterCRUDTestCase extends DrupalWebTestCase {
* Tests the administrative functionality of the Filter module.
*/
class FilterAdminTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Filter administration functionality',
@ -831,6 +834,8 @@ class FilterNoFormatTestCase extends DrupalWebTestCase {
* Security tests for missing/vanished text formats or filters.
*/
class FilterSecurityTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Security',

View File

@ -50,6 +50,11 @@ class ForumTestCase extends DrupalWebTestCase {
*/
protected $nids;
/**
* A forum to delete.
*/
protected $delete_forum;
public static function getInfo() {
return array(
'name' => 'Forum functionality',

View File

@ -19,6 +19,11 @@ class HelpTestCase extends DrupalWebTestCase {
*/
protected $any_user;
/**
* The list of modules.
*/
protected $modules;
public static function getInfo() {
return array(
'name' => 'Help functionality',

View File

@ -2617,6 +2617,8 @@ class LocaleUILanguageNegotiationTest extends DrupalWebTestCase {
* Test that URL rewriting works as expected.
*/
class LocaleUrlRewritingTest extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'URL rewriting',

View File

@ -684,6 +684,8 @@ class MenuTestCase extends DrupalWebTestCase {
* Test menu settings for nodes.
*/
class MenuNodeTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Menu settings for nodes',

View File

@ -448,6 +448,12 @@ class PageEditTestCase extends DrupalWebTestCase {
* Tests the node entity preview functionality.
*/
class PagePreviewTestCase extends DrupalWebTestCase {
protected $field;
protected $field_name;
protected $instance;
protected $vocabulary;
protected $term;
public static function getInfo() {
return array(
'name' => 'Node preview',
@ -1151,6 +1157,11 @@ class NodeAccessRecordsTestCase extends DrupalWebTestCase {
* Tests for Node Access with a non-node base table.
*/
class NodeAccessBaseTableTestCase extends DrupalWebTestCase {
protected $nodesByUser;
protected $webUser;
protected $publicTid;
protected $privateTid;
protected $nids_visible;
public static function getInfo() {
return array(
@ -1307,6 +1318,7 @@ class NodeAccessBaseTableTestCase extends DrupalWebTestCase {
* Tests node save related functionality, including import-save.
*/
class NodeSaveTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
@ -1747,6 +1759,8 @@ class NodeTypePersistenceTestCase extends DrupalWebTestCase {
* Verifies the rebuild functionality for the node_access table.
*/
class NodeAccessRebuildTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Node access rebuild',
@ -1778,6 +1792,11 @@ class NodeAccessRebuildTestCase extends DrupalWebTestCase {
* Tests node administration page functionality.
*/
class NodeAdminTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $base_user_1;
protected $base_user_2;
protected $base_user_3;
public static function getInfo() {
return array(
'name' => 'Node administration',
@ -2025,6 +2044,9 @@ class NodeFeedTestCase extends DrupalWebTestCase {
* Functional tests for the node module blocks.
*/
class NodeBlockFunctionalTest extends DrupalWebTestCase {
protected $admin_user;
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Node blocks',
@ -2246,6 +2268,13 @@ class NodeQueryAlter extends DrupalWebTestCase {
*/
protected $noAccessUser;
/**
* User without permission to view content.
*
* @var object
*/
protected $noAccessUser2;
function setUp() {
parent::setUp('node_access_test');
node_access_rebuild();
@ -2736,6 +2765,7 @@ class NodeRevisionPermissionsTestCase extends DrupalWebTestCase {
* Tests pagination with a node access module enabled.
*/
class NodeAccessPagerTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
@ -2825,6 +2855,11 @@ class NodeAccessPagerTestCase extends DrupalWebTestCase {
* Tests the interaction of the node access system with fields.
*/
class NodeAccessFieldTestCase extends NodeWebTestCase {
protected $field;
protected $field_name;
protected $instance;
protected $admin_user;
protected $content_admin_user;
public static function getInfo() {
return array(

View File

@ -338,6 +338,8 @@ class PathTaxonomyTermTestCase extends DrupalWebTestCase {
* Tests URL aliases for translated nodes.
*/
class PathLanguageTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Path aliases with translated nodes',

View File

@ -477,6 +477,11 @@ class PollJSAddChoice extends DrupalWebTestCase {
}
class PollVoteCheckHostname extends PollTestCase {
protected $admin_user;
protected $poll_nid;
protected $web_user1;
protected $web_user2;
public static function getInfo() {
return array(
'name' => 'User poll vote capability.',

View File

@ -379,6 +379,12 @@ class ProfileTestAutocomplete extends ProfileTestCase {
}
class ProfileBlockTestCase extends ProfileTestCase {
protected $field1;
protected $field2;
protected $value1;
protected $value2;
protected $node;
public static function getInfo() {
return array(
'name' => 'Block availability',

View File

@ -415,6 +415,8 @@ class RdfMappingDefinitionTestCase extends TaxonomyWebTestCase {
}
class RdfCommentAttributesTestCase extends CommentHelperCase {
protected $node1;
protected $node2;
public static function getInfo() {
return array(

View File

@ -753,6 +753,9 @@ class SearchExactTestCase extends DrupalWebTestCase {
*/
class SearchCommentTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $comment_subject;
protected $admin_role;
protected $node;
public static function getInfo() {
return array(
@ -1216,6 +1219,7 @@ class SearchSimplifyTestCase extends DrupalWebTestCase {
* Tests keywords and conditions.
*/
class SearchKeywordsConditions extends DrupalWebTestCase {
protected $searching_user;
public static function getInfo() {
return array(

View File

@ -65,6 +65,16 @@ abstract class DrupalTestCase {
*/
public $useSetupModulesCache = FALSE;
/**
* The original language.
*/
protected $originalLanguage;
/**
* The original default language.
*/
protected $originalLanguageDefault;
/**
* Current results of this test case.
*
@ -948,21 +958,11 @@ class DrupalWebTestCase extends DrupalTestCase {
*/
protected $redirect_count;
/**
* The original language.
*/
protected $originalLanguage;
/**
* The original language URL.
*/
protected $originalLanguageUrl;
/**
* The original default language.
*/
protected $originalLanguageDefault;
/**
* The original active installation profile.
*/

View File

@ -17,6 +17,26 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
*/
protected $test_ids = array();
/**
* The pass message.
*/
protected $pass;
/**
* The fail message.
*/
protected $fail;
/**
* The valid permission.
*/
protected $valid_permission;
/**
* The invalid permission.
*/
protected $invalid_permission;
public static function getInfo() {
return array(
'name' => 'SimpleTest functionality',
@ -638,6 +658,7 @@ class SimpleTestInstallationProfileModuleTestsTestCase extends DrupalWebTestCase
* @see DrupalSystemListingCompatibleTestCase
*/
protected $profile = 'testing';
protected $admin_user;
public static function getInfo() {
return array(
@ -684,6 +705,7 @@ class SimpleTestOtherInstallationProfileModuleTestsTestCase extends DrupalWebTes
* @see DrupalSystemListingCompatibleTestCase
*/
protected $profile = 'minimal';
protected $admin_user;
public static function getInfo() {
return array(
@ -728,6 +750,7 @@ class SimpleTestDiscoveryTestCase extends DrupalWebTestCase {
* @see DrupalSystemListingCompatibleTestCase
*/
protected $profile = 'testing';
protected $admin_user;
public static function getInfo() {
return array(

View File

@ -383,6 +383,8 @@ class AJAXCommandsTestCase extends AJAXTestCase {
* Test that $form_state['values'] is properly delivered to $ajax['callback'].
*/
class AJAXFormValuesTestCase extends AJAXTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'AJAX command form values',
@ -434,6 +436,8 @@ class AJAXFormValuesTestCase extends AJAXTestCase {
* Tests that Ajax-enabled forms work when multiple instances of the same form are on a page.
*/
class AJAXMultiFormTestCase extends AJAXTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'AJAX multi form',

View File

@ -1,6 +1,13 @@
<?php
class BootstrapIPAddressTestCase extends DrupalWebTestCase {
protected $oldserver;
protected $remote_ip;
protected $proxy_ip;
protected $proxy2_ip;
protected $forwarded_ip;
protected $cluster_ip;
protected $untrusted_ip;
public static function getInfo() {
return array(

View File

@ -2864,6 +2864,7 @@ class DrupalSystemListingTestCase extends DrupalWebTestCase {
* Tests for the format_date() function.
*/
class FormatDateUnitTest extends DrupalWebTestCase {
protected $admin_user;
/**
* Arbitrary langcode for a custom language.

View File

@ -7,6 +7,7 @@
* rather than just a stdClass or array. This class is for testing that
* functionality. (See testQueryFetchClass() below)
*/
#[AllowDynamicProperties]
class FakeRecord { }
/**
@ -4279,6 +4280,7 @@ class ConnectionUnitTest extends DrupalUnitTestCase {
protected $key;
protected $target;
protected $originalTarget;
protected $monitor;
protected $originalCount;

View File

@ -10,6 +10,9 @@
* Tests EntityFieldQuery.
*/
class EntityFieldQueryTestCase extends DrupalWebTestCase {
protected $fields;
protected $field_names;
protected $instances;
public static function getInfo() {
return array(

View File

@ -363,6 +363,9 @@ class FileSpaceUsedTest extends FileTestCase {
* This will run tests against the file validation functions (file_validate_*).
*/
class FileValidatorTest extends DrupalWebTestCase {
protected $image;
protected $non_image;
public static function getInfo() {
return array(
'name' => 'File validator tests',
@ -566,6 +569,11 @@ class FileSaveUploadTest extends FileHookTestCase {
*/
protected $maxFidBefore;
/**
* An image extension.
*/
protected $image_extension;
public static function getInfo() {
return array(
'name' => 'File uploading',
@ -1238,6 +1246,8 @@ class RemoteFileDirectoryTest extends FileDirectoryTest {
* Tests the file_scan_directory() function.
*/
class FileScanDirectoryTest extends FileTestCase {
protected $path;
public static function getInfo() {
return array(
'name' => 'File scan directory',
@ -2767,6 +2777,10 @@ class FileURLRewritingTest extends FileTestCase {
* Tests for file_munge_filename() and file_unmunge_filename().
*/
class FileNameMungingTest extends FileTestCase {
protected $bad_extension;
protected $name;
protected $name_with_uc_ext;
public static function getInfo() {
return array(
'name' => 'File naming',

View File

@ -6,6 +6,7 @@ class FileTranferTest extends DrupalWebTestCase {
protected $username = 'drupal';
protected $password = 'password';
protected $port = '42';
protected $testConnection;
public static function getInfo() {
return array(

View File

@ -1126,6 +1126,7 @@ class FormsElementsVerticalTabsFunctionalTest extends DrupalWebTestCase {
* values aren't lost due to a wrong form rebuild.
*/
class FormsFormStorageTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
@ -1620,6 +1621,8 @@ class FormStateValuesCleanAdvancedTestCase extends DrupalWebTestCase {
* @todo Add tests for other aspects of form rebuilding.
*/
class FormsRebuildTestCase extends DrupalWebTestCase {
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Form rebuilding',

View File

@ -1042,6 +1042,9 @@ class MenuTreeOutputTestCase extends DrupalWebTestCase {
* Menu breadcrumbs related tests.
*/
class MenuBreadcrumbTestCase extends MenuWebTestCase {
protected $admin_user;
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Breadcrumbs',
@ -1537,6 +1540,8 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase {
* Tests active menu trails.
*/
class MenuTrailTestCase extends MenuWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Active trail',

View File

@ -9,6 +9,8 @@
* Unit tests for the module API.
*/
class ModuleUnitTest extends DrupalWebTestCase {
protected $user;
public static function getInfo() {
return array(
'name' => 'Module API',

View File

@ -10,6 +10,7 @@
*/
class PagerFunctionalWebTestCase extends DrupalWebTestCase {
protected $profile = 'testing';
protected $admin_user;
public static function getInfo() {
return array(

View File

@ -1,6 +1,10 @@
<?php
class RegistryParseFileTestCase extends DrupalWebTestCase {
protected $fileName;
protected $className;
protected $interfaceName;
public static function getInfo() {
return array(
'name' => 'Registry parse file test',
@ -47,6 +51,8 @@ CONTENTS;
class RegistryParseFilesTestCase extends DrupalWebTestCase {
protected $fileTypes = array('new', 'existing_changed');
protected $new;
protected $existing_changed;
public static function getInfo() {
return array(

View File

@ -6,6 +6,8 @@
*/
class SessionTestCase extends DrupalWebTestCase {
protected $_logged_in;
public static function getInfo() {
return array(
'name' => 'Session tests',

View File

@ -431,6 +431,8 @@ class ThemeHookInitTestCase extends DrupalWebTestCase {
* Tests autocompletion not loading registry.
*/
class ThemeFastTestCase extends DrupalWebTestCase {
protected $account;
public static function getInfo() {
return array(
'name' => 'Theme fast initialization',

View File

@ -9,6 +9,7 @@
* Defines a base class for testing the Statistics module.
*/
class StatisticsTestCase extends DrupalWebTestCase {
protected $blocking_user;
function setUp() {
parent::setUp('statistics');
@ -52,6 +53,9 @@ class StatisticsTestCase extends DrupalWebTestCase {
* want to test requests from an anonymous user.
*/
class StatisticsLoggingTestCase extends DrupalWebTestCase {
protected $auth_user;
protected $node;
public static function getInfo() {
return array(
'name' => 'Statistics logging tests',

View File

@ -1183,6 +1183,7 @@ class PageNotFoundTestCase extends DrupalWebTestCase {
*/
class SiteMaintenanceTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $user;
public static function getInfo() {
return array(
@ -1283,6 +1284,8 @@ class SiteMaintenanceTestCase extends DrupalWebTestCase {
* Tests generic date and time handling capabilities of Drupal.
*/
class DateTimeFunctionalTest extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Date and time',
@ -1491,6 +1494,8 @@ class DateTimeFunctionalTest extends DrupalWebTestCase {
* Tests date format configuration.
*/
class DateFormatTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Date format',
@ -1649,6 +1654,8 @@ class PageTitleFiltering extends DrupalWebTestCase {
* Test front page functionality and administration.
*/
class FrontPageTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $node_path;
public static function getInfo() {
return array(
@ -1854,6 +1861,9 @@ class SystemMainContentFallback extends DrupalWebTestCase {
* Tests for the theme interface functionality.
*/
class SystemThemeFunctionalTest extends DrupalWebTestCase {
protected $admin_user;
protected $node;
public static function getInfo() {
return array(
'name' => 'Theme interface functionality',
@ -2768,6 +2778,9 @@ class ShutdownFunctionsTest extends DrupalWebTestCase {
* Tests administrative overview pages.
*/
class SystemAdminTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $web_user;
public static function getInfo() {
return array(
'name' => 'Administrative pages',
@ -2881,6 +2894,8 @@ class SystemAdminTestCase extends DrupalWebTestCase {
* Tests authorize.php and related hooks.
*/
class SystemAuthorizeCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Authorize API',

View File

@ -46,6 +46,8 @@ class TaxonomyWebTestCase extends DrupalWebTestCase {
* Tests the taxonomy vocabulary interface.
*/
class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase {
protected $vocabulary;
protected $admin_user;
public static function getInfo() {
return array(
@ -195,6 +197,10 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase {
* Tests for taxonomy vocabulary functions.
*/
class TaxonomyVocabularyTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
protected $field;
protected $field_name;
protected $instance;
public static function getInfo() {
return array(
@ -484,6 +490,7 @@ class TaxonomyTermFunctionTestCase extends TaxonomyWebTestCase {
* Test for legacy node bug.
*/
class TaxonomyLegacyTestCase extends TaxonomyWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
@ -522,6 +529,9 @@ class TaxonomyLegacyTestCase extends TaxonomyWebTestCase {
* Tests for taxonomy term functions.
*/
class TaxonomyTermTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
protected $instance;
protected $admin_user;
public static function getInfo() {
return array(
@ -1037,6 +1047,9 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase {
* Tests the rendering of term reference fields in RSS feeds.
*/
class TaxonomyRSSTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
protected $instance;
protected $admin_user;
public static function getInfo() {
return array(
@ -1131,6 +1144,14 @@ class TaxonomyRSSTestCase extends TaxonomyWebTestCase {
* Tests the hook implementations that maintain the taxonomy index.
*/
class TaxonomyTermIndexTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
protected $instance_1;
protected $field_name_1;
protected $field_1;
protected $instance_2;
protected $field_name_2;
protected $field_2;
protected $admin_user;
public static function getInfo() {
return array(
@ -1349,6 +1370,7 @@ class TaxonomyTermIndexTestCase extends TaxonomyWebTestCase {
* Test the taxonomy_term_load_multiple() function.
*/
class TaxonomyLoadMultipleTestCase extends TaxonomyWebTestCase {
protected $taxonomy_admin;
public static function getInfo() {
return array(
@ -1482,6 +1504,8 @@ class TaxonomyTermFieldTestCase extends TaxonomyWebTestCase {
protected $instance;
protected $vocabulary;
protected $field_name;
protected $field;
public static function getInfo() {
return array(
@ -1658,6 +1682,8 @@ class TaxonomyTermFieldMultipleVocabularyTestCase extends TaxonomyWebTestCase {
protected $instance;
protected $vocabulary1;
protected $vocabulary2;
protected $field_name;
protected $field;
public static function getInfo() {
return array(
@ -1776,6 +1802,10 @@ class TaxonomyTermFieldMultipleVocabularyTestCase extends TaxonomyWebTestCase {
* Test taxonomy token replacement in strings.
*/
class TaxonomyTokenReplaceTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
protected $instance;
protected $langcode;
protected $admin_user;
public static function getInfo() {
return array(
@ -1972,6 +2002,9 @@ class TaxonomyThemeTestCase extends TaxonomyWebTestCase {
* Tests the functionality of EntityFieldQuery for taxonomy entities.
*/
class TaxonomyEFQTestCase extends TaxonomyWebTestCase {
protected $admin_user;
protected $vocabulary;
public static function getInfo() {
return array(
'name' => 'Taxonomy EntityFieldQuery',
@ -2175,6 +2208,8 @@ class TaxonomyTermCacheUsageTestCase extends TaxonomyWebTestCase {
* Tests appropriate access control to private file fields on a term.
*/
class TaxonomyPrivateFileTestCase extends TaxonomyWebTestCase {
protected $vocabulary;
public static function getInfo() {
return array(
'name' => 'Taxonomy term private file access',

View File

@ -10,6 +10,8 @@
*/
class TranslationTestCase extends DrupalWebTestCase {
protected $book;
protected $admin_user;
protected $translator;
public static function getInfo() {
return array(

View File

@ -870,6 +870,8 @@ class UserPasswordResetTestCase extends DrupalWebTestCase {
* Test cancelling a user.
*/
class UserCancelTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => 'Cancel account',
@ -1829,6 +1831,9 @@ class UserTimeZoneFunctionalTest extends DrupalWebTestCase {
* Test user autocompletion.
*/
class UserAutocompleteTestCase extends DrupalWebTestCase {
protected $unprivileged_user;
protected $privileged_user;
public static function getInfo() {
return array(
'name' => 'User autocompletion',
@ -2296,6 +2301,11 @@ class UserEditRebuildTestCase extends DrupalWebTestCase {
* Test case for user signatures.
*/
class UserSignatureTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $web_user;
protected $full_html_format;
protected $plain_text_format;
public static function getInfo() {
return array(
'name' => 'User signatures',
@ -2416,6 +2426,7 @@ class UserEditedOwnAccountTestCase extends DrupalWebTestCase {
* Test case to test adding, editing and deleting roles.
*/
class UserRoleAdminTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(