mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13713] Remove mention colors to reduce the cache size
PHPBB3-13713
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<value>3</value>
|
||||
<value>Hidden group we are a member of</value>
|
||||
<value>2</value>
|
||||
<value>FF0000</value>
|
||||
<value></value>
|
||||
<value></value>
|
||||
</row>
|
||||
</table>
|
||||
@@ -53,7 +53,7 @@
|
||||
<value>test</value>
|
||||
<value>0</value>
|
||||
<value>0</value>
|
||||
<value>00FF00</value>
|
||||
<value></value>
|
||||
<value></value>
|
||||
<value></value>
|
||||
</row>
|
||||
|
@@ -82,12 +82,10 @@ class mention_helper_test extends phpbb_database_test_case
|
||||
[
|
||||
'<r><MENTION id="3" type="u"><s>[mention=u:3]</s>test<e>[/mention]</e></MENTION></r>',
|
||||
'mode=viewprofile&u=3',
|
||||
'color="00FF00"',
|
||||
],
|
||||
[
|
||||
'<r><MENTION id="3" type="g"><s>[mention=g:3]</s>test<e>[/mention]</e></MENTION></r>',
|
||||
'mode=group&g=3',
|
||||
'color="FF0000"',
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -95,11 +93,10 @@ class mention_helper_test extends phpbb_database_test_case
|
||||
/**
|
||||
* @dataProvider inject_metadata_data
|
||||
*/
|
||||
public function test_inject_metadata($incoming_xml, $expected_profile_substring, $expected_colour)
|
||||
public function test_inject_metadata($incoming_xml, $expected_profile_substring)
|
||||
{
|
||||
$result = $this->mention_helper->inject_metadata($incoming_xml);
|
||||
$this->assertContains($expected_profile_substring, $result);
|
||||
$this->assertContains($expected_colour, $result);
|
||||
}
|
||||
|
||||
public function get_mentioned_user_ids_data()
|
||||
|
Reference in New Issue
Block a user