MediaWiki  master
ActorMigrationTest Class Reference

Database ActorMigration. More...

Inheritance diagram for ActorMigrationTest:
Collaboration diagram for ActorMigrationTest:

Public Member Functions

 provideGetWhere ()
 
 testConstructor ( $stage, $exceptionMsg)
 provideConstructor More...
 
 testGetJoin ( $stage, $key, $expect)
 provideGetJoin More...
 
 testGetWhere ( $stage, $key, $users, $useId, $expect)
 provideGetWhere More...
 
 testInsertRoundTrip ( $table, $key, $pk, $extraFields)
 provideInsertRoundTrip More...
 
 testInsertUserIdentity ( $stage)
 provideStages More...
 
 testInsertWithTempTableCallbackMissingFields ( $stage)
 provideStages More...
 
 testInsertWithTempTableDeprecated ( $stage)
 provideStages More...
 
 testInsertWithTempTableWrong ( $stage)
 provideStages More...
 
 testInsertWrong ( $stage)
 provideStages More...
 
 testIsAnon ( $stage, $isAnon, $isNotAnon)
 provideIsAnon More...
 
 testNewMigration ()
 

Static Public Member Functions

static provideConstructor ()
 
static provideGetJoin ()
 
static provideInsertRoundTrip ()
 
static provideIsAnon ()
 
static provideStages ()
 

Protected Attributes

 $tablesUsed
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Detailed Description

Database ActorMigration.

Definition at line 11 of file ActorMigrationTest.php.

Member Function Documentation

◆ provideConstructor()

static ActorMigrationTest::provideConstructor ( )
static

◆ provideGetJoin()

static ActorMigrationTest::provideGetJoin ( )
static

◆ provideGetWhere()

ActorMigrationTest::provideGetWhere ( )

◆ provideInsertRoundTrip()

static ActorMigrationTest::provideInsertRoundTrip ( )
static

Definition at line 562 of file ActorMigrationTest.php.

References DB_MASTER, DB_REPLICA, and wfGetDB().

◆ provideIsAnon()

static ActorMigrationTest::provideIsAnon ( )
static

◆ provideStages()

static ActorMigrationTest::provideStages ( )
static

◆ testConstructor()

ActorMigrationTest::testConstructor (   $stage,
  $exceptionMsg 
)

provideConstructor

Parameters
int$stage
string | null$exceptionMsg

Definition at line 26 of file ActorMigrationTest.php.

References class, and null.

◆ testGetJoin()

ActorMigrationTest::testGetJoin (   $stage,
  $key,
  $expect 
)

provideGetJoin

Parameters
int$stage
string$key
array$expect

Definition at line 74 of file ActorMigrationTest.php.

◆ testGetWhere()

ActorMigrationTest::testGetWhere (   $stage,
  $key,
  $users,
  $useId,
  $expect 
)

provideGetWhere

Parameters
int$stage
string$key
UserIdentity[]$users
bool$useId
array$expect

Definition at line 247 of file ActorMigrationTest.php.

◆ testInsertRoundTrip()

ActorMigrationTest::testInsertRoundTrip (   $table,
  $key,
  $pk,
  $extraFields 
)

provideInsertRoundTrip

Parameters
string$table
string$key
string$pk
array$extraFields

Definition at line 450 of file ActorMigrationTest.php.

References $user, as, class, list, SCHEMA_COMPAT_NEW, SCHEMA_COMPAT_OLD, SCHEMA_COMPAT_READ_NEW, SCHEMA_COMPAT_READ_OLD, SCHEMA_COMPAT_WRITE_BOTH, SCHEMA_COMPAT_WRITE_NEW, and SCHEMA_COMPAT_WRITE_OLD.

◆ testInsertUserIdentity()

ActorMigrationTest::testInsertUserIdentity (   $stage)

provideStages

Parameters
int$stage

Definition at line 656 of file ActorMigrationTest.php.

References $user, class, list, SCHEMA_COMPAT_READ_NEW, SCHEMA_COMPAT_WRITE_NEW, and SCHEMA_COMPAT_WRITE_OLD.

◆ testInsertWithTempTableCallbackMissingFields()

ActorMigrationTest::testInsertWithTempTableCallbackMissingFields (   $stage)

provideStages

Parameters
int$stageInvalidArgumentException $extra[rev_timestamp] is not provided

Definition at line 645 of file ActorMigrationTest.php.

References list.

◆ testInsertWithTempTableDeprecated()

ActorMigrationTest::testInsertWithTempTableDeprecated (   $stage)

provideStages

Parameters
int$stage

Definition at line 628 of file ActorMigrationTest.php.

References class, and list.

◆ testInsertWithTempTableWrong()

ActorMigrationTest::testInsertWithTempTableWrong (   $stage)

provideStages

Parameters
int$stageInvalidArgumentException Must use getInsertValues() for rc_user

Definition at line 619 of file ActorMigrationTest.php.

◆ testInsertWrong()

ActorMigrationTest::testInsertWrong (   $stage)

provideStages

Parameters
int$stageInvalidArgumentException Must use getInsertValuesWithTempTable() for rev_user

Definition at line 608 of file ActorMigrationTest.php.

◆ testIsAnon()

ActorMigrationTest::testIsAnon (   $stage,
  $isAnon,
  $isNotAnon 
)

provideIsAnon

Parameters
int$stage
string$isAnon
string$isNotAnon

Definition at line 723 of file ActorMigrationTest.php.

◆ testNewMigration()

ActorMigrationTest::testNewMigration ( )

Definition at line 711 of file ActorMigrationTest.php.

References class, and ActorMigration\newMigration().

Member Data Documentation

◆ $tablesUsed

ActorMigrationTest::$tablesUsed
protected
Initial value:
= [
'revision',
'revision_actor_temp',
'ipblocks',
'recentchanges',
'actor',
]

Definition at line 13 of file ActorMigrationTest.php.


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