aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/fixtures/ext/foo/bar/language
diff options
context:
space:
mode:
authorOpenShift guest <dachebodt@gmail.com>2013-04-13 11:24:47 -0400
committerOpenShift guest <dachebodt@gmail.com>2013-04-13 11:24:47 -0400
commit84c815a12e7c2c816035e3b05e8ea7c88f0f4534 (patch)
tree2395d957a966e425bf310f3c23b663824e829999 /tests/functional/fixtures/ext/foo/bar/language
parent474b4a60a527a4c0cd853872ce80ae50fdd2f374 (diff)
downloadforums-84c815a12e7c2c816035e3b05e8ea7c88f0f4534.tar
forums-84c815a12e7c2c816035e3b05e8ea7c88f0f4534.tar.gz
forums-84c815a12e7c2c816035e3b05e8ea7c88f0f4534.tar.bz2
forums-84c815a12e7c2c816035e3b05e8ea7c88f0f4534.tar.xz
forums-84c815a12e7c2c816035e3b05e8ea7c88f0f4534.zip
[ticket/11458] Add functional test
Since there is no test method to include extension language files, a functional test seems more appropriate. We add a permission mask 'acl_u_foo' with translation found in extenion 'bar' and confirm that the permission language file 'permissions_foo.php' from 'bar' was added by asserting that 'Can view foo' exists when viewing user permissions in acp PHPBB3-11458
Diffstat (limited to 'tests/functional/fixtures/ext/foo/bar/language')
-rw-r--r--tests/functional/fixtures/ext/foo/bar/language/en/permissions_foo.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/fixtures/ext/foo/bar/language/en/permissions_foo.php b/tests/functional/fixtures/ext/foo/bar/language/en/permissions_foo.php
new file mode 100644
index 0000000000..cd4b9a32d1
--- /dev/null
+++ b/tests/functional/fixtures/ext/foo/bar/language/en/permissions_foo.php
@@ -0,0 +1,6 @@
+<?php
+
+// Admin Permissions
+$lang = array_merge($lang, array(
+ 'acl_u_foo' => array('lang' => 'Can view foo', 'cat' => 'misc'),
+));