Skip to:
Content

BuddyPress.org

Changeset 10004


Ignore:
Timestamp:
07/10/2015 01:53:54 PM (11 years ago)
Author:
boonebgorges
Message:

When generating fixtures during automated tests, use the default 'type' of 'textbox' for xprofile fields.

Fixes #6553.

Location:
trunk/tests/phpunit
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory.php

    r9819 r10004  
    210210
    211211                $this->default_generation_definitions = array(
    212                         'name'         => new WP_UnitTest_Generator_Sequence( 'XProfile field %s' ),
    213                         'description'  => new WP_UnitTest_Generator_Sequence( 'XProfile field description %s' ),
     212                        'name'        => new WP_UnitTest_Generator_Sequence( 'XProfile field %s' ),
     213                        'description' => new WP_UnitTest_Generator_Sequence( 'XProfile field description %s' ),
     214                        'type'        => 'textbox',
    214215                );
    215216        }
  • trunk/tests/phpunit/testcases/xprofile/activity.php

    r9936 r10004  
    315315                $this->updated_profile_data['g'] = $this->factory->xprofile_group->create();
    316316                $this->updated_profile_data['f'] = $this->factory->xprofile_field->create( array(
    317                         'type' => 'textbox',
    318317                        'field_group_id' => $this->updated_profile_data['g'],
    319318                ) );
  • trunk/tests/phpunit/testcases/xprofile/cache.php

    r9819 r10004  
    1313                $g = $this->factory->xprofile_group->create();
    1414                $f = $this->factory->xprofile_field->create( array(
    15                         'type' => 'textbox',
    1615                        'field_group_id' => $g,
    1716                ) );
     
    6867                $g = $this->factory->xprofile_group->create();
    6968                $f = $this->factory->xprofile_field->create( array(
    70                         'type' => 'textbox',
    7169                        'field_group_id' => $g,
    7270                ) );
     
    122120                $g = $this->factory->xprofile_group->create();
    123121                $f = $this->factory->xprofile_field->create( array(
    124                         'type' => 'textbox',
    125122                        'field_group_id' => $g,
    126123                ) );
  • trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-field.php

    r9983 r10004  
    1313                $field = $this->factory->xprofile_field->create( array(
    1414                        'field_group_id' => $group,
    15                         'type' => 'textbox',
    1615                ) );
    1716
  • trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-group.php

    r10002 r10004  
    2626                $g = $this->factory->xprofile_group->create();
    2727                $f = $this->factory->xprofile_field->create( array(
    28                         'type' => 'textbox',
    2928                        'field_group_id' => $g,
    3029                ) );
  • trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-profiledata.php

    r9819 r10004  
    1313                $g = $this->factory->xprofile_group->create();
    1414                $f = $this->factory->xprofile_field->create( array(
    15                         'type' => 'textbox',
    1615                        'field_group_id' => $g,
    1716                ) );
     
    2928                $g = $this->factory->xprofile_group->create();
    3029                $f = $this->factory->xprofile_field->create( array(
    31                         'type' => 'textbox',
    3230                        'field_group_id' => $g,
    3331                ) );
     
    4947                $g = $this->factory->xprofile_group->create();
    5048                $f = $this->factory->xprofile_field->create( array(
    51                         'type' => 'textbox',
    5249                        'field_group_id' => $g,
    5350                ) );
     
    6966                $g = $this->factory->xprofile_group->create();
    7067                $f = $this->factory->xprofile_field->create( array(
    71                         'type' => 'textbox',
    7268                        'field_group_id' => $g,
    7369                ) );
     
    8682                $g = $this->factory->xprofile_group->create();
    8783                $f = $this->factory->xprofile_field->create( array(
    88                         'type' => 'textbox',
    8984                        'field_group_id' => $g,
    9085                ) );
     
    109104                $g = $this->factory->xprofile_group->create();
    110105                $f = $this->factory->xprofile_field->create( array(
    111                         'type' => 'textbox',
    112106                        'field_group_id' => $g,
    113107                ) );
     
    128122                $g = $this->factory->xprofile_group->create();
    129123                $f = $this->factory->xprofile_field->create( array(
    130                         'type' => 'textbox',
    131124                        'field_group_id' => $g,
    132125                ) );
     
    154147                $g = $this->factory->xprofile_group->create();
    155148                $f = $this->factory->xprofile_field->create( array(
    156                         'type' => 'textbox',
    157149                        'field_group_id' => $g,
    158150                ) );
     
    209201                $g = $this->factory->xprofile_group->create();
    210202                $f = $this->factory->xprofile_field->create( array(
    211                         'type' => 'textbox',
    212203                        'field_group_id' => $g,
    213204                ) );
     
    234225                $g = $this->factory->xprofile_group->create();
    235226                $f = $this->factory->xprofile_field->create( array(
    236                         'type' => 'textbox',
    237227                        'field_group_id' => $g,
    238228                ) );
  • trunk/tests/phpunit/testcases/xprofile/functions.php

    r9819 r10004  
    6464                $f = $this->factory->xprofile_field->create( array(
    6565                        'field_group_id' => $g,
    66                         'type' => 'textbox',
    6766                ) );
    6867
     
    103102                $f = $this->factory->xprofile_field->create( array(
    104103                        'field_group_id' => $g,
    105                         'type' => 'textbox',
    106104                ) );
    107105
     
    122120                $f = $this->factory->xprofile_field->create( array(
    123121                        'field_group_id' => $g,
    124                         'type' => 'textbox',
    125122                ) );
    126123
     
    140137                $f = $this->factory->xprofile_field->create( array(
    141138                        'field_group_id' => $g,
    142                         'type' => 'textbox',
    143139                ) );
    144140
     
    534530                $f = $this->factory->xprofile_field->create( array(
    535531                        'field_group_id' => $g,
    536                         'type' => 'textbox',
    537532                        'name' => 'Neato',
    538533                ) );
     
    559554                $f = $this->factory->xprofile_field->create( array(
    560555                        'field_group_id' => $g,
    561                         'type' => 'textbox',
    562556                        'name' => 'Kewl',
    563557                ) );
Note: See TracChangeset for help on using the changeset viewer.