You are here

protected function UpdateManagerTest::setUp in Lightning Core 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/UpdateManagerTest.php \Drupal\Tests\lightning_core\Kernel\UpdateManagerTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/UpdateManagerTest.php, line 31

Class

UpdateManagerTest
@coversDefaultClass \Drupal\lightning_core\UpdateManager

Namespace

Drupal\Tests\lightning_core\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->updateManager = new class($this->container
    ->get('container.namespaces'), $this->container
    ->get('class_resolver'), $this->container
    ->get('config.factory'), $this->container
    ->get('extension.list.module')) extends UpdateManager {

    /**
     * {@inheritdoc}
     */

    // @codingStandardsIgnoreStart
    public $discovery;

    // @codingStandardsIgnoreEnd

    /**
     * {@inheritdoc}
     */
    public function getTasks($handler) {
      yield from parent::getTasks($handler);
    }

  };
}