Changeset 9224
- Timestamp:
- 12/10/2014 12:57:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/template.php
r9223 r9224 122 122 public function test_bp_signup_enabled_when_registration_setting_does_not_exist_should_default_to_true() { 123 123 $old_settings = $settings = buddypress()->site_options; 124 if ( is_array( $settings ['registration']) && isset( $settings['registration'] ) ) {124 if ( is_array( $settings ) && isset( $settings['registration'] ) ) { 125 125 unset( $settings['registration'] ); 126 126 } … … 136 136 */ 137 137 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; 139 139 140 140 if ( ! is_array( $settings ) ) { … … 154 154 */ 155 155 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; 157 157 158 158 if ( ! is_array( $settings ) ) { … … 172 172 */ 173 173 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; 175 175 176 176 if ( ! is_array( $settings ) ) { … … 190 190 */ 191 191 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; 193 193 194 194 if ( ! is_array( $settings ) ) {
Note: See TracChangeset
for help on using the changeset viewer.