public function ServiceTest::testGet in Purge 8.3
Same name in this branch
- 8.3 tests/src/Kernel/Processor/ServiceTest.php \Drupal\Tests\purge\Kernel\Processor\ServiceTest::testGet()
- 8.3 tests/src/Kernel/Queuer/ServiceTest.php \Drupal\Tests\purge\Kernel\Queuer\ServiceTest::testGet()
Tests \Drupal\purge\Plugin\Purge\Processor\QueuersService::get.
File
- tests/
src/ Kernel/ Queuer/ ServiceTest.php, line 47
Class
Namespace
Drupal\Tests\purge\Kernel\QueuerCode
public function testGet() : void {
$this
->initializeService();
$this
->assertTrue($this->service
->get('a') instanceof QueuerInterface);
$this
->assertTrue($this->service
->get('b') instanceof QueuerInterface);
$this
->assertFalse($this->service
->get('c'));
$this->service
->setPluginsEnabled([
'c',
]);
$this
->assertTrue($this->service
->get('c') instanceof QueuerInterface);
}