You are here

public function EnsureSubscriberTest::testSubscribedEvents in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
  2. 2.0.x tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
  3. 3.0.x tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()

Tests that the ENSURE event is registered.

File

tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php, line 38

Class

EnsureSubscriberTest
@coversDefaultClass \Drupal\flysystem\EventSubscriber\EnsureSubscriber @covers \Drupal\flysystem\EventSubscriber\EnsureSubscriber

Namespace

Drupal\Tests\flysystem\Unit\EventSubscriber

Code

public function testSubscribedEvents() {
  $result = EnsureSubscriber::getSubscribedEvents();
  $this
    ->assertTrue(isset($result[FlysystemEvents::ENSURE]));
}