MediaWiki  master
JobTest Class Reference
Inheritance diagram for JobTest:
Collaboration diagram for JobTest:

Public Member Functions

 getMockJob ( $params)
 
 newNullJob (Title $title, array $params)
 
 provideTestJobFactory ()
 
 provideTestToString ()
 
 testInvalidParamsArgument ()
 Job::__construct() More...
 
 testJobFactory ( $handler)
 provideTestJobFactory More...
 
 testJobSignatureGeneric ()
 Job::factory Job::__construct() More...
 
 testJobSignatureTitleBased ()
 Job::factory Job::__construct() More...
 
 testJobSignatureTitleBasedIncomplete ()
 Job::factory Job::__construct() More...
 
 testToString ( $job, $expected)
 provideTestToString More...
 

Static Public Member Functions

static staticNullJob (Title $title, array $params)
 

Private Member Functions

 assertJobParamsMatch (IJobSpecification $job, array $params)
 

Detailed Description

Author
Addshore

Definition at line 6 of file JobTest.php.

Member Function Documentation

◆ assertJobParamsMatch()

JobTest::assertJobParamsMatch ( IJobSpecification  $job,
array  $params 
)
private

◆ getMockJob()

JobTest::getMockJob (   $params)

Definition at line 83 of file JobTest.php.

References $params, and class.

Referenced by provideTestToString(), and testInvalidParamsArgument().

◆ newNullJob()

JobTest::newNullJob ( Title  $title,
array  $params 
)

Definition at line 131 of file JobTest.php.

References Job\factory().

◆ provideTestJobFactory()

JobTest::provideTestJobFactory ( )

Definition at line 120 of file JobTest.php.

References $params, $title, class, and Job\factory().

◆ provideTestToString()

JobTest::provideTestToString ( )

Definition at line 20 of file JobTest.php.

References class, getMockJob(), and WebRequest\getRequestId().

◆ staticNullJob()

static JobTest::staticNullJob ( Title  $title,
array  $params 
)
static

Definition at line 135 of file JobTest.php.

References Job\factory().

◆ testInvalidParamsArgument()

JobTest::testInvalidParamsArgument ( )

Job::__construct()

Definition at line 96 of file JobTest.php.

References $job, $params, class, and getMockJob().

◆ testJobFactory()

JobTest::testJobFactory (   $handler)

provideTestJobFactory

Parameters
mixed$handlerJob::factory

Definition at line 109 of file JobTest.php.

References $handler, $job, class, Job\factory(), and Title\newMainPage().

◆ testJobSignatureGeneric()

JobTest::testJobSignatureGeneric ( )

◆ testJobSignatureTitleBased()

JobTest::testJobSignatureTitleBased ( )

◆ testJobSignatureTitleBasedIncomplete()

JobTest::testJobSignatureTitleBasedIncomplete ( )

◆ testToString()

JobTest::testToString (   $job,
  $expected 
)

provideTestToString

Parameters
Job$job
string$expectedJob::toString

Definition at line 16 of file JobTest.php.

References $job.


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