function StageEventsTest::handleEvent

Handles a stage life cycle event.

Parameters

\Drupal\package_manager\Event\SandboxEvent $event: The event object.

File

core/modules/package_manager/tests/src/Kernel/StageEventsTest.php, line 88

Class

StageEventsTest
Tests that the stage fires events during its lifecycle.

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function handleEvent(SandboxEvent $event) : void {
    $this->events[] = get_class($event);
    // The event should have a reference to the stage which fired it.
    $this->assertSame($event->sandboxManager, $this->stage);
}

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