Ejemplo n.º 1
0
 public function testNewByTypeOnUnknownJobThrowsException()
 {
     $instance = new JobFactory();
     $this->setExpectedException('RuntimeException');
     $instance->newByType('Foo', Title::newFromText(__METHOD__));
 }
Ejemplo n.º 2
0
 public function testUpdateDispatcherJob()
 {
     $instance = new JobFactory();
     $this->assertInstanceOf('\\SMW\\MediaWiki\\Jobs\\UpdateDispatcherJob', $instance->newUpdateDispatcherJob(Title::newFromText(__METHOD__)));
 }
 public function testParserCachePurgeJob()
 {
     $instance = new JobFactory();
     $this->assertInstanceOf('\\SMW\\MediaWiki\\Jobs\\ParserCachePurgeJob', $instance->newParserCachePurgeJob(Title::newFromText(__METHOD__)));
 }