BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
TitlePermissionTest Class Reference
Inheritance diagram for TitlePermissionTest:
Collaboration diagram for TitlePermissionTest:

Public Member Functions

 testQuickPermissions ()
 
 testSpecialsAndNSPermissions ()
 
 testJsConfigEditPermissions ()
 
 testJsonConfigEditPermissions ()
 
 testCssConfigEditPermissions ()
 
 testOtherJsConfigEditPermissions ()
 
 testOtherJsonConfigEditPermissions ()
 
 testOtherCssConfigEditPermissions ()
 
 testOtherNonConfigEditPermissions ()
 
 testPageRestrictions ()
 
 testCascadingSourcesRestrictions ()
 
 testActionPermissions ()
 
 testUserBlock ()
 
- Public Member Functions inherited from MediaWikiTestCase
 __construct ($name=null, array $data=[], $dataName= '')
 
 run (PHPUnit_Framework_TestResult $result=null)
 
 usesTemporaryTables ()
 
 testMediaWikiTestCaseParentSetupCalled ()
 
 setUserLang ($lang)
 
 setContentLang ($lang)
 
 setGroupPermissions ($newPerms, $newKey=null, $newValue=null)
 
 dbPrefix ()
 
 needsDB ()
 
 addDBDataOnce ()
 
 addDBData ()
 
 setupAllTestDBs ()
 
 getCliArg ($offset)
 
 setCliArg ($offset, $value)
 
 hideDeprecated ($function)
 
- Public Member Functions inherited from PHPUnit_Framework_TestCase
 __construct ($name=null, array $data=array(), $dataName= '')
 
 toString ()
 
 count ()
 
 getAnnotations ()
 
 getName ($withDataSet=true)
 
 getSize ()
 
 getActualOutput ()
 
 hasOutput ()
 
 expectOutputRegex ($expectedRegex)
 
 expectOutputString ($expectedString)
 
 hasPerformedExpectationsOnOutput ()
 
 hasExpectationOnOutput ()
 
 getExpectedException ()
 
 setExpectedException ($exceptionName, $exceptionMessage= '', $exceptionCode=null)
 
 setExpectedExceptionRegExp ($exceptionName, $exceptionMessageRegExp= '', $exceptionCode=null)
 
 setUseErrorHandler ($useErrorHandler)
 
 getStatus ()
 
 getStatusMessage ()
 
 hasFailed ()
 
 run (PHPUnit_Framework_TestResult $result=null)
 
 runBare ()
 
 setName ($name)
 
 setDependencies (array $dependencies)
 
 hasDependencies ()
 
 setDependencyInput (array $dependencyInput)
 
 setDisallowChangesToGlobalState ($disallowChangesToGlobalState)
 
 setBackupGlobals ($backupGlobals)
 
 setBackupStaticAttributes ($backupStaticAttributes)
 
 setRunTestInSeparateProcess ($runTestInSeparateProcess)
 
 setPreserveGlobalState ($preserveGlobalState)
 
 setInIsolation ($inIsolation)
 
 isInIsolation ()
 
 getResult ()
 
 setResult ($result)
 
 setOutputCallback ($callback)
 
 getTestResultObject ()
 
 setTestResultObject (PHPUnit_Framework_TestResult $result)
 
 getMock ($originalClassName, $methods=array(), array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false, $callOriginalMethods=false, $proxyTarget=null)
 
 getMockBuilder ($className)
 
 getMockForAbstractClass ($originalClassName, array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=array(), $cloneArguments=false)
 
 getMockForTrait ($traitName, array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=array(), $cloneArguments=false)
 
 addToAssertionCount ($count)
 
 getNumAssertions ()
 

Public Attributes

 $altUserName
 
 $anonUser
 
 $userUser
 
 $altUser
 
- Public Attributes inherited from MediaWikiTestCase
const DB_PREFIX = 'unittest_'
 
const ORA_DB_PREFIX = 'ut_'
 

Protected Member Functions

 setUp ()
 
 setUserPerm ($perm)
 
 setTitle ($ns, $title="Main_Page")
 
 setUser ($userName=null)
 
 runGroupPermissions ($action, $result, $result2=null)
 
 runConfigEditPermissions ($resultNone, $resultMyCss, $resultMyJson, $resultMyJs, $resultUserCss, $resultUserJson, $resultUserJs)
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 
- Protected Member Functions inherited from MediaWikiTestCase
 getNewTempFile ()
 
 getNewTempDirectory ()
 
 setUp ()
 
 addTmpFiles ($files)
 
 tearDown ()
 
 setService ($name, $object)
 
 setMwGlobals ($pairs, $value=null)
 
 stashMwGlobals ($globalKeys)
 
 mergeMwGlobalArrayValue ($name, $values)
 
 overrideMwServices (Config $configOverrides=null, array $services=[])
 
 setLogger ($channel, LoggerInterface $logger)
 
 insertPage ($pageName, $text= 'Sample page for unit test.', $namespace=null)
 
static getSchemaOverrides (IMaintainableDatabase $db)
 
 checkDbIsSupported ()
 
 assertSelect ($table, $fields, $condition, array $expectedRows, array $options=[], array $join_conds=[])
 
 arrayWrap (array $elements)
 
 assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false)
 
 assertHTMLEquals ($expected, $actual, $msg= '')
 
 objectAssociativeSort (array &$array)
 
 assertTypeOrValue ($type, $actual, $value=false, $message= '')
 
 assertType ($type, $actual, $message= '')
 
 isWikitextNS ($ns)
 
 getDefaultWikitextNS ()
 
 markTestSkippedIfNoDiff3 ()
 
 checkPHPExtension ($extName)
 
 setTemporaryHook ($hookName, $handler)
 
 assertFileContains ($fileName, $actualData, $createIfMissing=true, $msg= '')
 
- Protected Member Functions inherited from PHPUnit_Framework_TestCase
 setExpectedExceptionFromAnnotation ()
 
 setUseErrorHandlerFromAnnotation ()
 
 checkRequirements ()
 
 runTest ()
 
 verifyMockObjects ()
 
 iniSet ($varName, $newValue)
 
 setLocale ()
 
 getMockClass ($originalClassName, $methods=array(), array $arguments=array(), $mockClassName= '', $callOriginalConstructor=false, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false)
 
 getMockFromWsdl ($wsdlFile, $originalClassName= '', $mockClassName= '', array $methods=array(), $callOriginalConstructor=true, array $options=array())
 
 getObjectForTrait ($traitName, array $arguments=array(), $traitClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false)
 
 prophesize ($classOrInterface=null)
 
 getDataSetAsString ($includeData=true)
 
 createResult ()
 
 handleDependencies ()
 
 setUp ()
 
 assertPreConditions ()
 
 assertPostConditions ()
 
 tearDown ()
 
 onNotSuccessfulTest (Exception $e)
 
 prepareTemplate (Text_Template $template)
 
 getMockObjectGenerator ()
 

Protected Attributes

 $userName
 
 $title
 
 $user
 
- Protected Attributes inherited from MediaWikiTestCase
 $db
 
 $tablesUsed = []
 
 $supportedDBs
 
- Protected Attributes inherited from PHPUnit_Framework_TestCase
 $backupGlobals = null
 
 $backupGlobalsBlacklist = array()
 
 $backupStaticAttributes = null
 
 $backupStaticAttributesBlacklist = array()
 
 $runTestInSeparateProcess = null
 
 $preserveGlobalState = true
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWikiTestCase
static setUpBeforeClass ()
 
static getTestUser ($groups=[])
 
static getMutableTestUser ($groups=[])
 
static getTestSysop ()
 
static prepareServices (Config $bootstrapConfig)
 
static teardownTestDB ()
 
static setupTestDB (Database $db, $prefix)
 
static listTables (IMaintainableDatabase $db)
 
static wfResetOutputBuffersBarrier ($buffer)
 
- Static Public Member Functions inherited from PHPUnit_Framework_TestCase
static any ()
 
static never ()
 
static atLeast ($requiredInvocations)
 
static atLeastOnce ()
 
static once ()
 
static exactly ($count)
 
static atMost ($allowedInvocations)
 
static at ($index)
 
static returnValue ($value)
 
static returnValueMap (array $valueMap)
 
static returnArgument ($argumentIndex)
 
static returnCallback ($callback)
 
static returnSelf ()
 
static throwException (Exception $exception)
 
static onConsecutiveCalls ()
 
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Static Public Member Functions inherited from PHPUnit_Framework_Assert
static assertArrayHasKey ($key, $array, $message= '')
 
static assertArraySubset ($subset, $array, $strict=false, $message= '')
 
static assertArrayNotHasKey ($key, $array, $message= '')
 
static assertContains ($needle, $haystack, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertAttributeContains ($needle, $haystackAttributeName, $haystackClassOrObject, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertNotContains ($needle, $haystack, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertAttributeNotContains ($needle, $haystackAttributeName, $haystackClassOrObject, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertContainsOnly ($type, $haystack, $isNativeType=null, $message= '')
 
static assertContainsOnlyInstancesOf ($classname, $haystack, $message= '')
 
static assertAttributeContainsOnly ($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType=null, $message= '')
 
static assertNotContainsOnly ($type, $haystack, $isNativeType=null, $message= '')
 
static assertAttributeNotContainsOnly ($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType=null, $message= '')
 
static assertCount ($expectedCount, $haystack, $message= '')
 
static assertAttributeCount ($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertNotCount ($expectedCount, $haystack, $message= '')
 
static assertAttributeNotCount ($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertEquals ($expected, $actual, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertAttributeEquals ($expected, $actualAttributeName, $actualClassOrObject, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertNotEquals ($expected, $actual, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertAttributeNotEquals ($expected, $actualAttributeName, $actualClassOrObject, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertEmpty ($actual, $message= '')
 
static assertAttributeEmpty ($haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertNotEmpty ($actual, $message= '')
 
static assertAttributeNotEmpty ($haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertGreaterThan ($expected, $actual, $message= '')
 
static assertAttributeGreaterThan ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertGreaterThanOrEqual ($expected, $actual, $message= '')
 
static assertAttributeGreaterThanOrEqual ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertLessThan ($expected, $actual, $message= '')
 
static assertAttributeLessThan ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertLessThanOrEqual ($expected, $actual, $message= '')
 
static assertAttributeLessThanOrEqual ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertFileEquals ($expected, $actual, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertFileNotEquals ($expected, $actual, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertStringEqualsFile ($expectedFile, $actualString, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertStringNotEqualsFile ($expectedFile, $actualString, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertFileExists ($filename, $message= '')
 
static assertFileNotExists ($filename, $message= '')
 
static assertTrue ($condition, $message= '')
 
static assertNotTrue ($condition, $message= '')
 
static assertFalse ($condition, $message= '')
 
static assertNotFalse ($condition, $message= '')
 
static assertNotNull ($actual, $message= '')
 
static assertNull ($actual, $message= '')
 
static assertClassHasAttribute ($attributeName, $className, $message= '')
 
static assertClassNotHasAttribute ($attributeName, $className, $message= '')
 
static assertClassHasStaticAttribute ($attributeName, $className, $message= '')
 
static assertClassNotHasStaticAttribute ($attributeName, $className, $message= '')
 
static assertObjectHasAttribute ($attributeName, $object, $message= '')
 
static assertObjectNotHasAttribute ($attributeName, $object, $message= '')
 
static assertSame ($expected, $actual, $message= '')
 
static assertAttributeSame ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertNotSame ($expected, $actual, $message= '')
 
static assertAttributeNotSame ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertInstanceOf ($expected, $actual, $message= '')
 
static assertAttributeInstanceOf ($expected, $attributeName, $classOrObject, $message= '')
 
static assertNotInstanceOf ($expected, $actual, $message= '')
 
static assertAttributeNotInstanceOf ($expected, $attributeName, $classOrObject, $message= '')
 
static assertInternalType ($expected, $actual, $message= '')
 
static assertAttributeInternalType ($expected, $attributeName, $classOrObject, $message= '')
 
static assertNotInternalType ($expected, $actual, $message= '')
 
static assertAttributeNotInternalType ($expected, $attributeName, $classOrObject, $message= '')
 
static assertRegExp ($pattern, $string, $message= '')
 
static assertNotRegExp ($pattern, $string, $message= '')
 
static assertSameSize ($expected, $actual, $message= '')
 
static assertNotSameSize ($expected, $actual, $message= '')
 
static assertStringMatchesFormat ($format, $string, $message= '')
 
static assertStringNotMatchesFormat ($format, $string, $message= '')
 
static assertStringMatchesFormatFile ($formatFile, $string, $message= '')
 
static assertStringNotMatchesFormatFile ($formatFile, $string, $message= '')
 
static assertStringStartsWith ($prefix, $string, $message= '')
 
static assertStringStartsNotWith ($prefix, $string, $message= '')
 
static assertStringEndsWith ($suffix, $string, $message= '')
 
static assertStringEndsNotWith ($suffix, $string, $message= '')
 
static assertXmlFileEqualsXmlFile ($expectedFile, $actualFile, $message= '')
 
static assertXmlFileNotEqualsXmlFile ($expectedFile, $actualFile, $message= '')
 
static assertXmlStringEqualsXmlFile ($expectedFile, $actualXml, $message= '')
 
static assertXmlStringNotEqualsXmlFile ($expectedFile, $actualXml, $message= '')
 
static assertXmlStringEqualsXmlString ($expectedXml, $actualXml, $message= '')
 
static assertXmlStringNotEqualsXmlString ($expectedXml, $actualXml, $message= '')
 
static assertEqualXMLStructure (DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes=false, $message= '')
 
static assertSelectCount ($selector, $count, $actual, $message= '', $isHtml=true)
 
static assertSelectRegExp ($selector, $pattern, $count, $actual, $message= '', $isHtml=true)
 
static assertSelectEquals ($selector, $content, $count, $actual, $message= '', $isHtml=true)
 
static assertTag ($matcher, $actual, $message= '', $isHtml=true)
 
static assertNotTag ($matcher, $actual, $message= '', $isHtml=true)
 
static assertThat ($value, PHPUnit_Framework_Constraint $constraint, $message= '')
 
static assertJson ($actualJson, $message= '')
 
static assertJsonStringEqualsJsonString ($expectedJson, $actualJson, $message= '')
 
static assertJsonStringNotEqualsJsonString ($expectedJson, $actualJson, $message= '')
 
static assertJsonStringEqualsJsonFile ($expectedFile, $actualJson, $message= '')
 
static assertJsonStringNotEqualsJsonFile ($expectedFile, $actualJson, $message= '')
 
static assertJsonFileNotEqualsJsonFile ($expectedFile, $actualFile, $message= '')
 
static assertJsonFileEqualsJsonFile ($expectedFile, $actualFile, $message= '')
 
static logicalAnd ()
 
static logicalOr ()
 
static logicalNot (PHPUnit_Framework_Constraint $constraint)
 
static logicalXor ()
 
static anything ()
 
static isTrue ()
 
static callback ($callback)
 
static isFalse ()
 
static isJson ()
 
static isNull ()
 
static attribute (PHPUnit_Framework_Constraint $constraint, $attributeName)
 
static contains ($value, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static containsOnly ($type)
 
static containsOnlyInstancesOf ($classname)
 
static arrayHasKey ($key)
 
static equalTo ($value, $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static attributeEqualTo ($attributeName, $value, $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static isEmpty ()
 
static fileExists ()
 
static greaterThan ($value)
 
static greaterThanOrEqual ($value)
 
static classHasAttribute ($attributeName)
 
static classHasStaticAttribute ($attributeName)
 
static objectHasAttribute ($attributeName)
 
static identicalTo ($value)
 
static isInstanceOf ($className)
 
static isType ($type)
 
static lessThan ($value)
 
static lessThanOrEqual ($value)
 
static matchesRegularExpression ($pattern)
 
static matches ($string)
 
static stringStartsWith ($prefix)
 
static stringContains ($string, $case=true)
 
static stringEndsWith ($suffix)
 
static countOf ($count)
 
static fail ($message= '')
 
static readAttribute ($classOrObject, $attributeName)
 
static getStaticAttribute ($className, $attributeName)
 
static getObjectAttribute ($object, $attributeName)
 
static markTestIncomplete ($message= '')
 
static markTestSkipped ($message= '')
 
static getCount ()
 
static resetCount ()
 
- Static Public Attributes inherited from MediaWikiTestCase
static $users
 
- Static Protected Member Functions inherited from MediaWikiTestCase
static resetGlobalServices (Config $bootstrapConfig=null)
 
static setupDatabaseWithTestPrefix (IMaintainableDatabase $db, $prefix)
 
static setupExternalStoreTestDBs ($testPrefix)
 
static isUsingExternalStoreDB ()
 
static stripStringKeys (&$r)
 

Detailed Description

Member Function Documentation

TitlePermissionTest::testActionPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkActionPermissions
TitlePermissionTest::testCascadingSourcesRestrictions ( )

Title::checkCascadingSourcesRestrictions

TitlePermissionTest::testCssConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testJsConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testJsonConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testOtherCssConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testOtherJsConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testOtherJsonConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testOtherNonConfigEditPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkUserConfigPermissions
TitlePermissionTest::testPageRestrictions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkPageRestrictions
TitlePermissionTest::testQuickPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkQuickPermissions
TitlePermissionTest::testSpecialsAndNSPermissions ( )
Todo:
This test method should be split up into separate test methods and data providers Title::checkSpecialsAndNSPermissions
TitlePermissionTest::testUserBlock ( )

Title::checkUserBlock


The documentation for this class was generated from the following file: