<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][12887] trunk: Update both Template Pack registration forms to use signup fields</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/12887">12887</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/12887","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-04-16 05:37:03 +0000 (Fri, 16 Apr 2021)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Update both Template Pack registration forms to use signup fields
- Nouveau and Legacy are now usinf the `bp_xprofile_signup_args()` to build the argument of their registration's form xProfile loop.
- Include a backward compatibility mechanism if the `register.php` page has been overriden from a theme or a plugin.
- This commit also includes PHP Unit tests about the xProfile loop and Signup Fields.
Props johnjamesjacoby, boonebgorges, DJPaul, Offereins
Fixes <a href="http://buddypress.trac.wordpress.org/ticket/6347">#6347</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbptemplatesbplegacybuddypressmembersregisterphp">trunk/src/bp-templates/bp-legacy/buddypress/members/register.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveaubuddypressmembersregisterphp">trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludestemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesxprofiletemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/xprofile/template-tags.php</a></li>
<li><a href="#trunksrcbpxprofilebpxprofilefiltersphp">trunk/src/bp-xprofile/bp-xprofile-filters.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestcasesxprofiletemplatephp">trunk/tests/phpunit/testcases/xprofile/template.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbptemplatesbplegacybuddypressmembersregisterphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-legacy/buddypress/members/register.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-legacy/buddypress/members/register.php 2021-04-16 05:32:04 UTC (rev 12886)
+++ trunk/src/bp-templates/bp-legacy/buddypress/members/register.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,7 +165,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <h2><?php _e( 'Profile Details', 'buddypress' ); ?></h2>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( bp_xprofile_signup_args() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveaubuddypressmembersregisterphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php 2021-04-16 05:32:04 UTC (rev 12886)
+++ trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * BuddyPress - Members/Blogs Registration forms
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 4.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 8.0.0
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -38,7 +38,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php /***** Extra Profile Details ******/ ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php if ( bp_is_active( 'xprofile' ) && bp_nouveau_base_account_has_xprofile() ) : ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( bp_is_active( 'xprofile' ) && bp_nouveau_has_signup_xprofile_fields( true ) ) : ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php bp_nouveau_signup_hook( 'before', 'signup_profile' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludestemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/template-tags.php 2021-04-16 05:32:04 UTC (rev 12886)
+++ trunk/src/bp-templates/bp-nouveau/includes/template-tags.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1515,7 +1515,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Provide a class token to acknowledge additional extended profile fields added to default account reg screen
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( 'register' === bp_current_component() && bp_is_active( 'xprofile' ) && bp_nouveau_base_account_has_xprofile()) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( 'register' === bp_current_component() && bp_is_active( 'xprofile' ) && bp_nouveau_has_signup_xprofile_fields()) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $classes[] = 'extended-default-reg';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesxprofiletemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/xprofile/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/xprofile/template-tags.php 2021-04-16 05:32:04 UTC (rev 12886)
+++ trunk/src/bp-templates/bp-nouveau/includes/xprofile/template-tags.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * xProfile Template tags
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 3.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 8.0.0
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Exit if accessed directly.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,12 +62,26 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * profile fields added to it for the registration screen.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.0.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @deprecated 8.0.0
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_nouveau_base_account_has_xprofile() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- return (bool) bp_has_profile(
- array(
- 'profile_group_id' => 1,
- 'fetch_field_data' => false,
- )
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ _deprecated_function( __FUNCTION__, '8.0.0', 'bp_nouveau_has_signup_xprofile_fields()' );
+ return bp_nouveau_has_signup_xprofile_fields();
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Checks whether there are signup profile fields to display.
+ *
+ * @since 8.0.0
+ *
+ * @param bool Whether to init an xProfile loop.
+ * @return bool True if there are signup profile fields to display. False otherwise.
+ */
+function bp_nouveau_has_signup_xprofile_fields( $do_loop = false ) {
+ if ( ! $do_loop ) {
+ $signup_fields = (array) bp_xprofile_get_signup_field_ids();
+ return 1 <= count( $signup_fields );
+ }
+
+ return bp_has_profile( bp_xprofile_signup_args() );
+}
</ins></span></pre></div>
<a id="trunksrcbpxprofilebpxprofilefiltersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-xprofile/bp-xprofile-filters.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-xprofile/bp-xprofile-filters.php 2021-04-16 05:32:04 UTC (rev 12886)
+++ trunk/src/bp-xprofile/bp-xprofile-filters.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -691,3 +691,79 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $exporters;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Used to edit the field input name inside the xProfile Admin Screen
+ *
+ * @see bp_xprofile_admin_get_signup_field()
+ *
+ * @since 8.0.0
+ *
+ * @param string $field_selector The text to use as the input name/id attribute.
+ * @return string The text to use as the input name/id attribute.
+ */
+function bp_get_the_profile_signup_field_input_name( $field_selector = '' ) {
+ global $field;
+
+ if ( isset( $field->id ) && $field->id ) {
+ $field_selector = sprintf( 'signup_field_%d', $field->id );
+ }
+
+ return $field_selector;
+}
+
+/**
+ * Provides Signup fields argument back compatibility for template overrides.
+ *
+ * @since 8.0.0
+ * @access private
+ *
+ * @param array $args The xProfile loop's signup arguments.
+ * @return array The xProfile loop's signup arguments.
+ */
+function _bp_xprofile_signup_do_backcompat( $args = array() ) {
+ $expected_args = bp_xprofile_signup_args();
+ $needed_args = array_intersect_key( $args, $expected_args );
+
+ if ( 1 === $args['profile_group_id'] || array_diff_key( $expected_args, $needed_args ) ) {
+ _doing_it_wrong( 'bp_has_profile()', __( 'The argument of this function into your custom `members/register.php` template should be bp_xprofile_signup_args()', 'buddypress' ), '8.0.0' );
+ $args = $expected_args;
+ }
+
+ return $args;
+}
+
+/**
+ * Checks whether back compatibility is needed about xProfile loop's signup arguments.
+ *
+ * @since 8.0.0
+ * @access private
+ *
+ * @param string $template The located path for registration template.
+ * @param string $template_name The needed template name.
+ */
+function _bp_xprofile_signup_check_backcompat( $template = '', $template_name = '' ) {
+ if ( 'members/register.php' !== $template_name ) {
+ return;
+ }
+
+ if ( 0 !== strpos( $template, buddypress()->theme_compat->theme->dir ) ) {
+ add_filter( 'bp_after_has_profile_parse_args', '_bp_xprofile_signup_do_backcompat', 100 );
+ }
+}
+
+/**
+ * Starts Signup fields back compatibility process only on the signup's page.
+ *
+ * @since 8.0.0
+ * @access private
+ */
+function _bp_xprofile_signup_start_backcompat() {
+ $signup_fields = (array) bp_xprofile_get_signup_field_ids();
+ if ( ! $signup_fields ) {
+ return;
+ }
+
+ add_action( 'bp_locate_template', '_bp_xprofile_signup_check_backcompat', 10, 2 );
+}
+add_action( 'bp_core_screen_signup', '_bp_xprofile_signup_start_backcompat' );
</ins></span></pre></div>
<a id="trunktestsphpunittestcasesxprofiletemplatephp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/tests/phpunit/testcases/xprofile/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/testcases/xprofile/template.php (rev 0)
+++ trunk/tests/phpunit/testcases/xprofile/template.php 2021-04-16 05:37:03 UTC (rev 12887)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,129 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * @group xprofile
+ */
+class BP_Tests_xProfile_Template extends BP_UnitTestCase {
+
+ /**
+ * @group bp_has_profile
+ */
+ public function test_bp_has_profile_default() {
+ global $profile_template;
+ $reset_profile_template = $profile_template;
+ $prev_user = get_current_user_id();
+
+ $u1 = self::factory()->user->create(
+ array(
+ 'display_name' => 'Foo Bar',
+ )
+ );
+
+ $this->set_current_user( $u1 );
+
+ bp_has_profile(
+ array(
+ 'profile_group_id' => 1,
+ 'user_id' => $u1,
+ )
+ );
+
+ $group = reset( $profile_template->groups );
+ $field = reset( $group->fields );
+ $this->assertEquals( 'Foo Bar', $field->data->value, 'The primary field should be the Name one and its value should be the same than the display name, by default' );
+
+ $this->set_current_user( $prev_user );
+ $profile_template = $reset_profile_template;
+ }
+
+ /**
+ * @group bp_has_profile
+ * @group bp_xprofile_signup_args
+ */
+ public function test_bp_has_profile_signup_from_same_group() {
+ global $profile_template;
+ $reset_profile_template = $profile_template;
+ add_filter( 'bp_get_signup_allowed', '__return_true' );
+
+ $field_not_in = self::factory()->xprofile_field->create(
+ array(
+ 'field_group_id' => 1,
+ 'type' => 'textbox',
+ 'name' => 'NotInSignupForm'
+ )
+ );
+
+ $field_in = self::factory()->xprofile_field->create(
+ array(
+ 'field_group_id' => 1,
+ 'type' => 'textbox',
+ 'name' => 'InSignupForm'
+ )
+ );
+
+ // Add the field to signup ones.
+ bp_xprofile_update_field_meta( $field_in, 'signup_position', 2 );
+
+ bp_has_profile( bp_xprofile_signup_args() );
+
+ $group = reset( $profile_template->groups );
+ $names = wp_list_pluck( $group->fields, 'name' );
+ $expected_names = array( 'Name', 'InSignupForm' );
+
+ $this->assertSame( $expected_names, $names );
+
+ xprofile_delete_field( $field_in );
+ xprofile_delete_field( $field_not_in );
+
+ remove_filter( 'bp_get_signup_allowed', '__return_true' );
+ $profile_template = $reset_profile_template;
+ }
+
+ /**
+ * @group bp_has_profile
+ * @group bp_xprofile_signup_args
+ */
+ public function test_bp_has_profile_signup_from_different_group() {
+ global $profile_template;
+ $reset_profile_template = $profile_template;
+ add_filter( 'bp_get_signup_allowed', '__return_true' );
+
+ $group_1 = self::factory()->xprofile_group->create();
+ $group_2 = self::factory()->xprofile_group->create();
+
+ $field_in_1 = self::factory()->xprofile_field->create(
+ array(
+ 'field_group_id' => $group_1,
+ 'type' => 'textbox',
+ 'name' => 'InSignupForm1'
+ )
+ );
+
+ // Put the field at the last position
+ bp_xprofile_update_field_meta( $field_in_1, 'signup_position', 3 );
+
+ $field_in_2 = self::factory()->xprofile_field->create(
+ array(
+ 'field_group_id' => $group_2,
+ 'type' => 'textbox',
+ 'name' => 'InSignupForm2'
+ )
+ );
+
+ // Put the field at the second position
+ bp_xprofile_update_field_meta( $field_in_2, 'signup_position', 2 );
+
+ bp_has_profile( bp_xprofile_signup_args() );
+
+ $group = reset( $profile_template->groups );
+ $names = wp_list_pluck( $group->fields, 'name' );
+ $expected_names = array( 'Name', 'InSignupForm2', 'InSignupForm1' );
+
+ $this->assertSame( $expected_names, $names );
+
+ xprofile_delete_field_group( $group_1 );
+ xprofile_delete_field_group( $group_2 );
+
+ remove_filter( 'bp_get_signup_allowed', '__return_true' );
+ $profile_template = $reset_profile_template;
+ }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: trunk/tests/phpunit/testcases/xprofile/template.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span></div>
</body>
</html>