aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility/fixtures
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-01 17:13:15 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-01 17:13:15 +0200
commit280619eea9585924a44611f001f266d354036d0a (patch)
treeedbcc5686acb2372afd72ae3df901fa65640f909 /tests/content_visibility/fixtures
parent38d83da69e65f3dac635d203230d38089df314a5 (diff)
downloadforums-280619eea9585924a44611f001f266d354036d0a.tar
forums-280619eea9585924a44611f001f266d354036d0a.tar.gz
forums-280619eea9585924a44611f001f266d354036d0a.tar.bz2
forums-280619eea9585924a44611f001f266d354036d0a.tar.xz
forums-280619eea9585924a44611f001f266d354036d0a.zip
[feature/soft-delete] Add unit tests for get_visibility_sql()
PHPBB3-9657
Diffstat (limited to 'tests/content_visibility/fixtures')
-rw-r--r--tests/content_visibility/fixtures/get_visibility_sql.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/content_visibility/fixtures/get_visibility_sql.xml b/tests/content_visibility/fixtures/get_visibility_sql.xml
new file mode 100644
index 0000000000..146244263e
--- /dev/null
+++ b/tests/content_visibility/fixtures/get_visibility_sql.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_topics">
+ <column>topic_id</column>
+ <column>forum_id</column>
+ <column>topic_visibility</column>
+ <column>topic_title</column>
+ <row>
+ <value>1</value>
+ <value>1</value>
+ <value>0</value>
+ <value>Unapproved</value>
+ </row>
+ <row>
+ <value>2</value>
+ <value>1</value>
+ <value>1</value>
+ <value>Approved</value>
+ </row>
+ <row>
+ <value>3</value>
+ <value>1</value>
+ <value>2</value>
+ <value>Softdeleted</value>
+ </row>
+ </table>
+ <table name="phpbb_posts">
+ <column>post_id</column>
+ <column>topic_id</column>
+ <column>forum_id</column>
+ <column>post_visibility</column>
+ <column>post_text</column>
+ <row>
+ <value>1</value>
+ <value>1</value>
+ <value>1</value>
+ <value>0</value>
+ <value>Unapproved</value>
+ </row>
+ <row>
+ <value>2</value>
+ <value>2</value>
+ <value>1</value>
+ <value>1</value>
+ <value>Approved</value>
+ </row>
+ <row>
+ <value>3</value>
+ <value>3</value>
+ <value>1</value>
+ <value>2</value>
+ <value>Softdeleted</value>
+ </row>
+ </table>
+</dataset>