Skip to:
Content

BuddyPress.org

Changeset 9224


Ignore:
Timestamp:
12/10/2014 12:57:00 PM (10 years ago)
Author:
boonebgorges
Message:

Proper cleanup between bp_blog_signup_enabled() tests.

I'm gonna keep chipping away at these tests until something works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/blogs/template.php

    r9223 r9224  
    122122    public function test_bp_signup_enabled_when_registration_setting_does_not_exist_should_default_to_true() {
    123123        $old_settings = $settings = buddypress()->site_options;
    124         if ( is_array( $settings['registration'] ) && isset( $settings['registration'] ) ) {
     124        if ( is_array( $settings ) && isset( $settings['registration'] ) ) {
    125125            unset( $settings['registration'] );
    126126        }
     
    136136     */
    137137    public function test_bp_signup_enabled_when_registration_setting_is_all_should_return_true() {
    138         $old_settings = $settings = buddypress()->site_options['registration'];
     138        $old_settings = $settings = buddypress()->site_options;
    139139
    140140        if ( ! is_array( $settings ) ) {
     
    154154     */
    155155    public function test_bp_signup_enabled_when_registration_setting_is_blog_should_return_true() {
    156         $old_settings = $settings = buddypress()->site_options['registration'];
     156        $old_settings = $settings = buddypress()->site_options;
    157157
    158158        if ( ! is_array( $settings ) ) {
     
    172172     */
    173173    public function test_bp_signup_enabled_when_registration_setting_is_user_should_return_false() {
    174         $old_settings = $settings = buddypress()->site_options['registration'];
     174        $old_settings = $settings = buddypress()->site_options;
    175175
    176176        if ( ! is_array( $settings ) ) {
     
    190190     */
    191191    public function test_bp_signup_enabled_when_registration_setting_is_none_should_return_false() {
    192         $old_settings = $settings = buddypress()->site_options['registration'];
     192        $old_settings = $settings = buddypress()->site_options;
    193193
    194194        if ( ! is_array( $settings ) ) {
Note: See TracChangeset for help on using the changeset viewer.