aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache/cache_memory_test.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-24 16:16:47 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-24 16:16:47 +0200
commit74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc (patch)
treeeef0f3cefca22202d492c42544bd95b4b2a054e4 /tests/cache/cache_memory_test.php
parentd53336af061e4c7b892c3acf4ce8fe0fa0205a72 (diff)
downloadforums-74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc.tar
forums-74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc.tar.gz
forums-74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc.tar.bz2
forums-74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc.tar.xz
forums-74a96bf7c2c6d4bb0c68cf74858260d0466ed3cc.zip
[ticket/11224] Adds a test case
PHPBB3-11224
Diffstat (limited to 'tests/cache/cache_memory_test.php')
-rw-r--r--tests/cache/cache_memory_test.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cache/cache_memory_test.php b/tests/cache/cache_memory_test.php
index 5a9f61f36e..7a529c1d04 100644
--- a/tests/cache/cache_memory_test.php
+++ b/tests/cache/cache_memory_test.php
@@ -73,6 +73,22 @@ class phpbb_cache_memory_test extends phpbb_database_test_case
),
POSTS_TABLE,
),
+ array(
+ array(
+ array(
+ 'SELECT * FROM ' . POSTS_TABLE . ' p
+ LEFT JOIN ' . TOPICS_TABLE . ' t ON p.topic_id = t.topic_id',
+ 3,
+ ),
+ array(
+ 'SELECT * FROM ' . POSTS_TABLE . ' p
+ LEFT JOIN ' . TOPICS_TABLE . ' t ON p.topic_id = t.topic_id
+ LEFT JOIN ' . USERS_TABLE . ' u ON p.poster_id = u.user_id',
+ 3,
+ ),
+ ),
+ TOPICS_TABLE,
+ ),
);
}