1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 19:49:54 +02:00

[ticket/13713] Add test for all mention sources and controller

PHPBB3-13713
This commit is contained in:
lavigor
2018-08-02 22:20:04 +03:00
committed by Marc Alexander
parent 224d753414
commit 29a11cf930
3 changed files with 927 additions and 0 deletions

View File

@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dataset>
<table name="phpbb_groups">
<column>group_id</column>
<column>group_name</column>
<column>group_type</column>
<column>group_desc</column>
<row>
<value>1</value>
<value>Normal group</value>
<value>0</value>
<value></value>
</row>
<row>
<value>2</value>
<value>Hidden group</value>
<value>2</value>
<value></value>
</row>
<row>
<value>3</value>
<value>Group we are a member of</value>
<value>0</value>
<value></value>
</row>
</table>
<table name="phpbb_posts">
<column>post_id</column>
<column>topic_id</column>
<column>forum_id</column>
<column>poster_id</column>
<column>post_time</column>
<column>post_text</column>
<row>
<value>1</value>
<value>1</value>
<value>1</value>
<value>3</value>
<value>1</value>
<value>Topic's initial post.</value>
</row>
<row>
<value>2</value>
<value>1</value>
<value>1</value>
<value>4</value>
<value>2</value>
<value>A reply.</value>
</row>
</table>
<table name="phpbb_teampage">
<column>group_id</column>
<row>
<value>1</value>
</row>
</table>
<table name="phpbb_topics">
<column>topic_id</column>
<column>forum_id</column>
<column>topic_poster</column>
<row>
<value>1</value>
<value>1</value>
<value>3</value>
</row>
</table>
<table name="phpbb_users">
<column>user_id</column>
<column>username</column>
<column>username_clean</column>
<column>user_type</column>
<column>user_lastvisit</column>
<column>user_permissions</column>
<column>user_sig</column>
<row>
<value>2</value>
<value>myself</value>
<value>myself</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>3</value>
<value>poster</value>
<value>poster</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>4</value>
<value>replier</value>
<value>replier</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>5</value>
<value>team_member_normal</value>
<value>team_member_normal</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>6</value>
<value>team_member_hidden</value>
<value>team_member_hidden</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>7</value>
<value>friend</value>
<value>friend</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>8</value>
<value>test</value>
<value>test</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>9</value>
<value>test1</value>
<value>test1</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>10</value>
<value>test2</value>
<value>test2</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
<row>
<value>11</value>
<value>test3</value>
<value>test3</value>
<value>0</value>
<value>0</value>
<value></value>
<value></value>
</row>
</table>
<table name="phpbb_user_group">
<column>user_id</column>
<column>group_id</column>
<column>user_pending</column>
<row>
<value>2</value>
<value>3</value>
<value>0</value>
</row>
<row>
<value>5</value>
<value>1</value>
<value>0</value>
</row>
<row>
<value>6</value>
<value>2</value>
<value>0</value>
</row>
</table>
<table name="phpbb_zebra">
<column>user_id</column>
<column>zebra_id</column>
<column>friend</column>
<column>foe</column>
<row>
<value>2</value>
<value>7</value>
<value>1</value>
<value>0</value>
</row>
</table>
</dataset>

View File

@@ -0,0 +1,70 @@
imports:
- { resource: ../../../phpBB/config/default/container/services_mention.yml }
services:
user_loader:
synthetic: true
user:
synthetic: true
config:
synthetic: true
dbal.conn:
synthetic: true
language:
synthetic: true
auth:
synthetic: true
cache.driver:
synthetic: true
group_helper:
synthetic: true
path_helper:
synthetic: true
request:
synthetic: true
text_formatter.s9e.factory:
synthetic: true
text_formatter.s9e.quote_helper:
synthetic: true
text_formatter.s9e.mention_helper:
synthetic: true
text_formatter.parser:
synthetic: true
text_formatter.s9e.parser:
synthetic: true
text_formatter.renderer:
synthetic: true
text_formatter.s9e.renderer:
synthetic: true
text_formatter.utils:
synthetic: true
text_formatter.s9e.utils:
synthetic: true
text_formatter.data_access:
synthetic: true
#
# test:
# class: phpbb\notification\type\test
# shared: false
# parent: notification.type.base
# tags:
# - { name: notification.type }