Commit 64871d4f authored by Drew Webber's avatar Drew Webber
Browse files

Issue #3322003 by poker10: [D7 PHP 8.2] Fix Deprecated function: Creation of...

Issue #3322003 by poker10: [D7 PHP 8.2] Fix Deprecated function: Creation of dynamic property in tests
parent 240afdc6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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',
+1 −0
Original line number Diff line number Diff line
@@ -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(
+3 −0
Original line number Diff line number Diff line
@@ -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',
+6 −0
Original line number Diff line number Diff line
@@ -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',
+15 −0
Original line number Diff line number Diff line
@@ -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',
Loading