You are here

public function EnsureSubscriberTest::testSubscribedEvents in Flysystem 3.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
  2. 3.x tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
  3. 2.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]));
}