Commit b7bb19cb authored by Pietro Saccardi's avatar Pietro Saccardi

Add a list of valid expressions to test. [skip ci]

parent 771acb54
Pipeline #430 skipped
......@@ -7,6 +7,63 @@
*/
class general_plugin_ifauthex_test extends DokuWikiTest
{
const VALID_EXPRESSIONS = array(
'user',
'!user',
'@group',
'!@group',
'!(!@group && !@group && !@group)',
'!(!@group && !user && @group) || !(@group || user || @group)',
'!(!@group && @group || !user) && (!user || user && @group)',
'!(!@group && user) && !(!@group || @group || user)',
'!(!@group || !user && !user) || !(user || @group || !@group)',
'!(!@group || @group || !@group) && (@group || @group && !@group)',
'!(!@group || user || user) && !(!user || !user || !user)',
'!(!user && !@group) || (!@group || !user && @group)',
'!(!user && @group && @group) && (user || !@group || user)',
'!(!user && user || !user) && !(@group || !@group && user)',
'!(!user || !@group || user) || (!user || !@group && !@group)',
'!(!user || @group && !user) || !(!@group && user || !user)',
'!(!user || user || !@group) && !(user && user && !user)',
'!(@group && !@group || !user) || (@group && @group || user)',
'!(@group && !user) || !(!user && @group && user)',
'!(@group && user && @group) && (!@group && !user)',
'!(@group || !@group || !@group) || (user && !user || !user)',
'!(@group || !user || user) || !(@group && !user && !user)',
'!(@group || user && !user) && (!user && !@group || @group)',
'!(user && !@group && user) && !(!@group && !@group && @group)',
'!(user && !user || !user) || !(@group)',
'!(user && @group) && (!user || user || !user)',
'!(user || !@group && @group) && !(!@group || user && !user)',
'!(user || !user || !@group) || !(user || @group || user)',
'!(user || @group || user) && (@group || @group && user)',
'!user || !user || user',
'(!@group && !user && @group) || !(@group || !user || !user)',
'(!@group && @group || !user) && (!user || !user && !user)',
'(!@group && user) && !(!@group || !@group || @group)',
'(!@group || !user && !user) || !(user || !@group && user)',
'(!@group || @group || !@group) && (@group && user)',
'(!@group || user || user) && !(!user && user || !@group)',
'(!user && !@group) || (!@group && user && !user)',
'(!user && @group && @group) && (user && @group || @group)',
'(!user && user || !user) && !(@group && @group && @group)',
'(!user || !@group || user) || (!user && !user)',
'(!user || @group && !user) || !(!@group && !user || !@group)',
'(!user || user || !@group) && !(user && !user && !@group)',
'(@group && !@group || !user) || (@group && !@group || @group)',
'(@group && !user) || !(!user && !@group && @group)',
'(@group && user && @group) && !(user || user)',
'(@group || !@group || !@group) || (@group || user || !user)',
'(@group || !user || user) || !(!user || user && !user)',
'(@group || user && !user) && (!@group || @group || @group)',
'(user && !@group && @group) || (user || @group && user)',
'(user && !user || !user) || !(@group || !user)',
'(user && @group) && (!user || !user || !@group)',
'(user || !@group && @group) && !(!@group || !user && !@group)',
'(user || !user || !@group) || !(user || !@group || @group)',
'(user || @group || user) && (@group || !@group && @group)',
'user && user || @group'
);
/**
* Simple test to make sure the plugin.info.txt is in correct format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment