mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge pull request #2621 from Dragooon/ticket/12732
[ticket/12732] Add Skype custom profile field * Dragooon/ticket/12732: [ticket/12732] Update schema.json for Skype [ticket/12732] Add functional test for Skype profile field [ticket/12732] Values shouldn't be escaped for schema_data.sql [ticket/12732] Set field_active to 1 for Skype's field [ticket/12732] Add unit tests for ALPHA_PUNCTUATION [ticket/12732] Missing comma after validation definition [ticket/12732] Improve ALPHA_PUNCTUATION description [ticket/12732] Use user info instead of chat as default Skype action [ticket/12732] Add Skype custom profile field Conflicts: phpBB/install/schemas/schema.json phpBB/install/schemas/schema_data.sql phpBB/language/en/memberlist.php tests/functional/ucp_profile_test.php tests/profilefields/type_string_test.php
This commit is contained in:
@@ -25,9 +25,10 @@ class phpbb_functional_ucp_profile_test extends phpbb_functional_test_case
|
||||
$this->assertContainsLang('UCP_PROFILE_PROFILE_INFO', $crawler->filter('#cp-main h2')->text());
|
||||
|
||||
$form = $crawler->selectButton('Submit')->form(array(
|
||||
'pf_phpbb_facebook' => 'phpbb',
|
||||
'pf_phpbb_facebook' => 'phpbb',
|
||||
'pf_phpbb_location' => 'Bertie´s Empire',
|
||||
'pf_phpbb_twitter' => 'phpbb_twitter',
|
||||
'pf_phpbb_skype' => 'phpbb.skype.account',
|
||||
'pf_phpbb_twitter' => 'phpbb_twitter',
|
||||
));
|
||||
|
||||
$crawler = self::submit($form);
|
||||
@@ -38,6 +39,7 @@ class phpbb_functional_ucp_profile_test extends phpbb_functional_test_case
|
||||
|
||||
$this->assertEquals('phpbb', $form->get('pf_phpbb_facebook')->getValue());
|
||||
$this->assertEquals('Bertie´s Empire', $form->get('pf_phpbb_location')->getValue());
|
||||
$this->assertEquals('phpbb.skype.account', $form->get('pf_phpbb_skype')->getValue());
|
||||
$this->assertEquals('phpbb_twitter', $form->get('pf_phpbb_twitter')->getValue());
|
||||
}
|
||||
}
|
||||
|
@@ -155,6 +155,18 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
||||
'FIELD_INVALID_CHARS_ALPHA_DOTS-field',
|
||||
'Required field should reject field with comma',
|
||||
),
|
||||
array(
|
||||
'skype.test.name,_this',
|
||||
array('field_validation' => '[a-zA-Z][\w\.,\-_]+'),
|
||||
false,
|
||||
'Required field should accept alphanumeric field with punctuations',
|
||||
),
|
||||
array(
|
||||
'1skype.this.should.faila',
|
||||
array('field_validation' => '[a-zA-Z][\w\.,\-_]+'),
|
||||
'FIELD_INVALID_CHARS_ALPHA_PUNCTUATION-field',
|
||||
'Required field should reject field having invalid input for the given validation',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user