public function EnsureSubscriberTest::testSubscribedEvents in Flysystem 3.x
Same name and namespace in other branches
- 8 tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
- 2.0.x tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php \Drupal\Tests\flysystem\Unit\EventSubscriber\EnsureSubscriberTest::testSubscribedEvents()
- 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\EventSubscriberCode
public function testSubscribedEvents() {
$result = EnsureSubscriber::getSubscribedEvents();
$this
->assertTrue(isset($result[FlysystemEvents::ENSURE]));
}