MediaWiki  REL1_19
SpecialRecentchangesTest Class Reference

Test class for SpecialRecentchanges class. More...

Inheritance diagram for SpecialRecentchangesTest:
Collaboration diagram for SpecialRecentchangesTest:

List of all members.

Public Member Functions

 provideNamespacesAssociations ()
 Provides associated namespaces to test recent changes namespaces association filtering.
 setUp ()
 testRcNsFilter ()
 testRcNsFilterAssociation ($ns1, $ns2)
 testRcNsFilterAssociationWithInversion ($ns1, $ns2)
 testRcNsFilterInversion ()

Protected Attributes

 $rc

Private Member Functions

 assertConditions ($expected, $requestOptions=null, $message= '')
 helper to test SpecialRecentchanges::buildMainQueryConds()

Static Private Member Functions

static filterOutRcTimestampCondition ($var)
 return false if condition begin with 'rc_timestamp '

Detailed Description

Test class for SpecialRecentchanges class.

Copyright © 2011, Antoine Musso

Author:
Antoine Musso Database

Definition at line 10 of file SpecialRecentchangesTest.php.


Member Function Documentation

SpecialRecentchangesTest::assertConditions ( expected,
requestOptions = null,
message = '' 
) [private]

helper to test SpecialRecentchanges::buildMainQueryConds()

Definition at line 21 of file SpecialRecentchangesTest.php.

References RequestContext\setRequest().

Referenced by testRcNsFilter(), testRcNsFilterAssociation(), testRcNsFilterAssociationWithInversion(), and testRcNsFilterInversion().

Here is the call graph for this function:

Here is the caller graph for this function:

static SpecialRecentchangesTest::filterOutRcTimestampCondition ( var) [static, private]

return false if condition begin with 'rc_timestamp '

Definition at line 46 of file SpecialRecentchangesTest.php.

Provides associated namespaces to test recent changes namespaces association filtering.

Definition at line 123 of file SpecialRecentchangesTest.php.

Definition at line 51 of file SpecialRecentchangesTest.php.

References assertConditions().

Here is the call graph for this function:

Bug:
2429 provideNamespacesAssociations

Definition at line 84 of file SpecialRecentchangesTest.php.

References assertConditions().

Here is the call graph for this function:

Bug:
2429 provideNamespacesAssociations

Definition at line 103 of file SpecialRecentchangesTest.php.

References assertConditions().

Here is the call graph for this function:

Definition at line 65 of file SpecialRecentchangesTest.php.

References assertConditions().

Here is the call graph for this function:


Member Data Documentation

SpecialRecentchangesTest::$rc [protected]

Definition at line 15 of file SpecialRecentchangesTest.php.


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