MediaWiki  master
CategoryMembershipChangeJobTest Class Reference

CategoryMembershipChangeJob. More...

Inheritance diagram for CategoryMembershipChangeJobTest:
Collaboration diagram for CategoryMembershipChangeJobTest:

Public Member Functions

 addDBDataOnce ()
 
 setUp ()
 
 testRun_normalCategoryAddedAndRemoved ()
 

Public Attributes

const TITLE_STRING = 'UTCatChangeJobPage'
 

Private Member Functions

 editPageText ( $text)
 
 getCategorizeRecentChangeForRevId ( $revId)
 
 runJobs ()
 

Private Attributes

Title $title
 

Detailed Description

CategoryMembershipChangeJob.

JobQueue Database

Note
GPL-2.0-or-later
Author
Addshore

Definition at line 12 of file CategoryMembershipChangeJobTest.php.

Member Function Documentation

◆ addDBDataOnce()

CategoryMembershipChangeJobTest::addDBDataOnce ( )

Definition at line 27 of file CategoryMembershipChangeJobTest.php.

References title.

◆ editPageText()

CategoryMembershipChangeJobTest::editPageText (   $text)
private
Parameters
string$textnew page text
Returns
int|null

Definition at line 45 of file CategoryMembershipChangeJobTest.php.

References WikiPage\factory(), ContentHandler\makeContent(), runJobs(), and title.

Referenced by testRun_normalCategoryAddedAndRemoved().

◆ getCategorizeRecentChangeForRevId()

CategoryMembershipChangeJobTest::getCategorizeRecentChangeForRevId (   $revId)
private
Parameters
int$revId
Returns
RecentChange|null

Definition at line 63 of file CategoryMembershipChangeJobTest.php.

References RecentChange\newFromConds(), and RC_CATEGORIZE.

Referenced by testRun_normalCategoryAddedAndRemoved().

◆ runJobs()

CategoryMembershipChangeJobTest::runJobs ( )
private

◆ setUp()

CategoryMembershipChangeJobTest::setUp ( )

Definition at line 21 of file CategoryMembershipChangeJobTest.php.

◆ testRun_normalCategoryAddedAndRemoved()

CategoryMembershipChangeJobTest::testRun_normalCategoryAddedAndRemoved ( )

Member Data Documentation

◆ $title

Title CategoryMembershipChangeJobTest::$title
private

Definition at line 19 of file CategoryMembershipChangeJobTest.php.

◆ TITLE_STRING

const CategoryMembershipChangeJobTest::TITLE_STRING = 'UTCatChangeJobPage'

Definition at line 14 of file CategoryMembershipChangeJobTest.php.


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