Skip to:
Content

BuddyPress.org

Changeset 11288


Ignore:
Timestamp:
12/11/2016 10:23:00 PM (8 years ago)
Author:
djpaul
Message:

Tests: fix unset properties in xprofile autolink.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/xprofile/functions.php

    r11287 r11288  
    10491049    public function test_field_comma_seperated_values_are_autolinked() {
    10501050        $field_group_id = $this->factory->xprofile_group->create();
    1051         $field_id = $this->factory->xprofile_field->create( array( 'field_group_id' => $this->field_group_id ) );
    1052         $GLOBALS['field'] = new BP_XProfile_Field( $this->field_id );
     1051        $field_id = $this->factory->xprofile_field->create( array( 'field_group_id' => $field_group_id ) );
     1052        $GLOBALS['field'] = new BP_XProfile_Field( $field_id );
    10531053        $GLOBALS['field']->do_autolink = true;
    10541054
     
    10651065    public function test_field_semicolon_seperated_values_are_autolinked() {
    10661066        $field_group_id = $this->factory->xprofile_group->create();
    1067         $field_id = $this->factory->xprofile_field->create( array( 'field_group_id' => $this->field_group_id ) );
    1068         $GLOBALS['field'] = new BP_XProfile_Field( $this->field_id );
     1067        $field_id = $this->factory->xprofile_field->create( array( 'field_group_id' => $field_group_id ) );
     1068        $GLOBALS['field'] = new BP_XProfile_Field( $field_id );
    10691069        $GLOBALS['field']->do_autolink = true;
    10701070
Note: See TracChangeset for help on using the changeset viewer.