Skip to:
Content

bbPress.org

Changeset 5997


Ignore:
Timestamp:
04/06/2016 06:58:37 AM (9 years ago)
Author:
netweb
Message:

Tests: Forum meta keys created with our Factory::create methods should not be prefixed with _bbp_

Props thebrandonallen.
Fixes 2926.

Location:
trunk/tests/phpunit/testcases
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/update.php

    r5967 r5997  
    8282        $category_id = $this->factory->forum->create( array(
    8383            'forum_meta' => array(
    84                 '_bbp_forum_type' => 'category',
    85                 '_bbp_status'     => 'open',
     84                'forum_type' => 'category',
     85                'status'     => 'open',
    8686            ),
    8787        ) );
  • trunk/tests/phpunit/testcases/forums/template/get-last-thing.php

    r5966 r5997  
    1717        $c = $this->factory->forum->create( array(
    1818            'forum_meta' => array(
    19                 '_bbp_forum_type' => 'category',
    20                 '_bbp_status'     => 'open',
    21             ),
    22         ) );
    23 
    24         $f = $this->factory->forum->create( array(
    25             'post_parent' => $c,
    26             'forum_meta' => array(
    27                 'forum_id'        => $c,
    28                 '_bbp_forum_type' => 'forum',
    29                 '_bbp_status'     => 'open',
     19                'forum_type' => 'category',
     20                'status'     => 'open',
     21            ),
     22        ) );
     23
     24        $f = $this->factory->forum->create( array(
     25            'post_parent' => $c,
     26            'forum_meta' => array(
     27                'forum_id'   => $c,
     28                'forum_type' => 'forum',
     29                'status'     => 'open',
    3030            ),
    3131        ) );
     
    9494        $c = $this->factory->forum->create( array(
    9595            'forum_meta' => array(
    96                 '_bbp_forum_type' => 'category',
    97                 '_bbp_status'     => 'open',
    98             ),
    99         ) );
    100 
    101 
    102         $f = $this->factory->forum->create( array(
    103             'post_parent' => $c,
    104             'forum_meta' => array(
    105                 'forum_id'        => $c,
    106                 '_bbp_forum_type' => 'forum',
    107                 '_bbp_status'     => 'open',
     96                'forum_type' => 'category',
     97                'status'     => 'open',
     98            ),
     99        ) );
     100
     101
     102        $f = $this->factory->forum->create( array(
     103            'post_parent' => $c,
     104            'forum_meta' => array(
     105                'forum_id'   => $c,
     106                'forum_type' => 'forum',
     107                'status'     => 'open',
    108108            ),
    109109        ) );
     
    199199        $c = $this->factory->forum->create( array(
    200200            'forum_meta' => array(
    201                 '_bbp_forum_type' => 'category',
    202                 '_bbp_status'     => 'open',
    203             ),
    204         ) );
    205 
    206 
    207         $f = $this->factory->forum->create( array(
    208             'post_parent' => $c,
    209             'forum_meta' => array(
    210                 'forum_id'        => $c,
    211                 '_bbp_forum_type' => 'forum',
    212                 '_bbp_status'     => 'open',
     201                'forum_type' => 'category',
     202                'status'     => 'open',
     203            ),
     204        ) );
     205
     206
     207        $f = $this->factory->forum->create( array(
     208            'post_parent' => $c,
     209            'forum_meta' => array(
     210                'forum_id'   => $c,
     211                'forum_type' => 'forum',
     212                'status'     => 'open',
    213213            ),
    214214        ) );
     
    270270        $c = $this->factory->forum->create( array(
    271271            'forum_meta' => array(
    272                 '_bbp_forum_type' => 'category',
    273                 '_bbp_status'     => 'open',
     272                'forum_type' => 'category',
     273                'status'     => 'open',
    274274            ),
    275275        ) );
     
    280280            'forum_meta' => array(
    281281                'forum_id'        => $c,
    282                 '_bbp_forum_type' => 'forum',
    283                 '_bbp_status'     => 'open',
     282                'forum_type' => 'forum',
     283                'status'     => 'open',
    284284            ),
    285285        ) );
     
    328328        $c = $this->factory->forum->create( array(
    329329            'forum_meta' => array(
    330                 '_bbp_forum_type' => 'category',
    331                 '_bbp_status'     => 'open',
     330                'forum_type' => 'category',
     331                'status'     => 'open',
    332332            ),
    333333        ) );
     
    338338            'forum_meta' => array(
    339339                'forum_id'        => $c,
    340                 '_bbp_forum_type' => 'forum',
    341                 '_bbp_status'     => 'open',
     340                'forum_type' => 'forum',
     341                'status'     => 'open',
    342342            ),
    343343        ) );
     
    379379        $c = $this->factory->forum->create( array(
    380380            'forum_meta' => array(
    381                 '_bbp_forum_type' => 'category',
    382                 '_bbp_status'     => 'open',
    383             ),
    384         ) );
    385 
    386 
    387         $f = $this->factory->forum->create( array(
    388             'post_parent' => $c,
    389             'forum_meta' => array(
    390                 'forum_id'        => $c,
    391                 '_bbp_forum_type' => 'forum',
    392                 '_bbp_status'     => 'open',
     381                'forum_type' => 'category',
     382                'status'     => 'open',
     383            ),
     384        ) );
     385
     386
     387        $f = $this->factory->forum->create( array(
     388            'post_parent' => $c,
     389            'forum_meta' => array(
     390                'forum_id'   => $c,
     391                'forum_type' => 'forum',
     392                'status'     => 'open',
    393393            ),
    394394        ) );
     
    418418        $c = $this->factory->forum->create( array(
    419419            'forum_meta' => array(
    420                 '_bbp_forum_type' => 'category',
    421                 '_bbp_status'     => 'open',
    422             ),
    423         ) );
    424 
    425 
    426         $f = $this->factory->forum->create( array(
    427             'post_author' => $u,
    428             'post_parent' => $c,
    429             'forum_meta' => array(
    430                 'forum_id'        => $c,
    431                 '_bbp_forum_type' => 'forum',
    432                 '_bbp_status'     => 'open',
     420                'forum_type' => 'category',
     421                'status'     => 'open',
     422            ),
     423        ) );
     424
     425
     426        $f = $this->factory->forum->create( array(
     427            'post_author' => $u,
     428            'post_parent' => $c,
     429            'forum_meta' => array(
     430                'forum_id'   => $c,
     431                'forum_type' => 'forum',
     432                'status'     => 'open',
    433433            ),
    434434        ) );
     
    472472        $c = $this->factory->forum->create( array(
    473473            'forum_meta' => array(
    474                 '_bbp_forum_type' => 'category',
    475                 '_bbp_status'     => 'open',
    476             ),
    477         ) );
    478 
    479 
    480         $f = $this->factory->forum->create( array(
    481             'post_parent' => $c,
    482             'forum_meta' => array(
    483                 'forum_id'        => $c,
    484                 '_bbp_forum_type' => 'forum',
    485                 '_bbp_status'     => 'open',
     474                'forum_type' => 'category',
     475                'status'     => 'open',
     476            ),
     477        ) );
     478
     479
     480        $f = $this->factory->forum->create( array(
     481            'post_parent' => $c,
     482            'forum_meta' => array(
     483                'forum_id'   => $c,
     484                'forum_type' => 'forum',
     485                'status'     => 'open',
    486486            ),
    487487        ) );
     
    511511        $c = $this->factory->forum->create( array(
    512512            'forum_meta' => array(
    513                 '_bbp_forum_type' => 'category',
    514                 '_bbp_status'     => 'open',
    515             ),
    516         ) );
    517 
    518 
    519         $f = $this->factory->forum->create( array(
    520             'post_parent' => $c,
    521             'forum_meta' => array(
    522                 'forum_id'        => $c,
    523                 '_bbp_forum_type' => 'forum',
    524                 '_bbp_status'     => 'open',
     513                'forum_type' => 'category',
     514                'status'     => 'open',
     515            ),
     516        ) );
     517
     518
     519        $f = $this->factory->forum->create( array(
     520            'post_parent' => $c,
     521            'forum_meta' => array(
     522                'forum_id'   => $c,
     523                'forum_type' => 'forum',
     524                'status'     => 'open',
    525525            ),
    526526        ) );
     
    573573        $c = $this->factory->forum->create( array(
    574574            'forum_meta' => array(
    575                 '_bbp_forum_type' => 'category',
    576                 '_bbp_status'     => 'open',
    577             ),
    578         ) );
    579 
    580 
    581         $f = $this->factory->forum->create( array(
    582             'post_parent' => $c,
    583             'forum_meta' => array(
    584                 'forum_id'        => $c,
    585                 '_bbp_forum_type' => 'forum',
    586                 '_bbp_status'     => 'open',
     575                'forum_type' => 'category',
     576                'status'     => 'open',
     577            ),
     578        ) );
     579
     580
     581        $f = $this->factory->forum->create( array(
     582            'post_parent' => $c,
     583            'forum_meta' => array(
     584                'forum_id'   => $c,
     585                'forum_type' => 'forum',
     586                'status'     => 'open',
    587587            ),
    588588        ) );
     
    646646        $c = $this->factory->forum->create( array(
    647647            'forum_meta' => array(
    648                 '_bbp_forum_type' => 'category',
    649                 '_bbp_status'     => 'open',
    650             ),
    651         ) );
    652 
    653 
    654         $f = $this->factory->forum->create( array(
    655             'post_author' => $u,
    656             'post_parent' => $c,
    657             'forum_meta' => array(
    658                 'forum_id'        => $c,
    659                 '_bbp_forum_type' => 'forum',
    660                 '_bbp_status'     => 'open',
     648                'forum_type' => 'category',
     649                'status'     => 'open',
     650            ),
     651        ) );
     652
     653
     654        $f = $this->factory->forum->create( array(
     655            'post_author' => $u,
     656            'post_parent' => $c,
     657            'forum_meta' => array(
     658                'forum_id'   => $c,
     659                'forum_type' => 'forum',
     660                'status'     => 'open',
    661661            ),
    662662        ) );
     
    701701        $c = $this->factory->forum->create( array(
    702702            'forum_meta' => array(
    703                 '_bbp_forum_type' => 'category',
    704                 '_bbp_status'     => 'open',
    705             ),
    706         ) );
    707 
    708 
    709         $f = $this->factory->forum->create( array(
    710             'post_author' => $u,
    711             'post_parent' => $c,
    712             'forum_meta' => array(
    713                 'forum_id'        => $c,
    714                 '_bbp_forum_type' => 'forum',
    715                 '_bbp_status'     => 'open',
     703                'forum_type' => 'category',
     704                'status'     => 'open',
     705            ),
     706        ) );
     707
     708
     709        $f = $this->factory->forum->create( array(
     710            'post_author' => $u,
     711            'post_parent' => $c,
     712            'forum_meta' => array(
     713                'forum_id'   => $c,
     714                'forum_type' => 'forum',
     715                'status'     => 'open',
    716716            ),
    717717        ) );
     
    754754        $c = $this->factory->forum->create( array(
    755755            'forum_meta' => array(
    756                 '_bbp_forum_type' => 'category',
    757                 '_bbp_status'     => 'open',
    758             ),
    759         ) );
    760 
    761 
    762         $f = $this->factory->forum->create( array(
    763             'post_parent' => $c,
    764             'forum_meta' => array(
    765                 'forum_id'        => $c,
    766                 '_bbp_forum_type' => 'forum',
    767                 '_bbp_status'     => 'open',
     756                'forum_type' => 'category',
     757                'status'     => 'open',
     758            ),
     759        ) );
     760
     761
     762        $f = $this->factory->forum->create( array(
     763            'post_parent' => $c,
     764            'forum_meta' => array(
     765                'forum_id'   => $c,
     766                'forum_type' => 'forum',
     767                'status'     => 'open',
    768768            ),
    769769        ) );
Note: See TracChangeset for help on using the changeset viewer.