function FailureMarkerTest::testMarkerFileIsExcluded

Tests marker file is excluded.

@legacy-covers ::getSubscribedEvents @legacy-covers ::excludeMarkerFile

File

core/modules/package_manager/tests/src/Kernel/FailureMarkerTest.php, line 106

Class

FailureMarkerTest
Tests Drupal\package_manager\FailureMarker.

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testMarkerFileIsExcluded() : void {
  $event = new CollectPathsToExcludeEvent($this->createStage(), $this->container
    ->get(PathLocator::class), $this->container
    ->get(PathFactoryInterface::class));
  $this->container
    ->get('event_dispatcher')
    ->dispatch($event);
  $this->assertContains('PACKAGE_MANAGER_FAILURE.yml', $event->getAll());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.