X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fjobqueue%2FJobQueueMemoryTest.php;h=d5a267e5b4bf9992dfb96cbe9ca297ebb7092567;hp=4b03fda7b7d71e12a7419833d2cd0694b7187eed;hb=ee56f00ddf0609082f8ae9a4dc3e6e1b6f54ddfd;hpb=a85d1b9d0cd7f02111d3a647d5b91e3b1f334563 diff --git a/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php b/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php index 4b03fda7b7..d5a267e5b4 100644 --- a/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php +++ b/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php @@ -6,16 +6,18 @@ * @group JobQueue * * @licence GNU GPL v2+ - * @author Thiemo Mättig + * @author Thiemo Kreuz */ class JobQueueMemoryTest extends PHPUnit_Framework_TestCase { + use MediaWikiCoversValidator; + /** * @return JobQueueMemory */ private function newJobQueue() { return JobQueue::factory( [ - 'class' => 'JobQueueMemory', + 'class' => JobQueueMemory::class, 'wiki' => wfWikiID(), 'type' => 'null', ] ); @@ -52,7 +54,7 @@ class JobQueueMemoryTest extends PHPUnit_Framework_TestCase { public function testJobFromSpecInternal() { $queue = $this->newJobQueue(); $job = $queue->jobFromSpecInternal( $this->newJobSpecification() ); - $this->assertInstanceOf( 'Job', $job ); + $this->assertInstanceOf( Job::class, $job ); $this->assertSame( 'null', $job->getType() ); $this->assertArrayHasKey( 'customParameter', $job->getParams() ); $this->assertSame( 'Custom title', $job->getTitle()->getText() );