function StreamWrapperTest::testSchemeRegistered

Same name in other branches
  1. 4.0.x modules/stream_wrapper_example/tests/src/Kernel/StreamWrapperTest.php \Drupal\Tests\stream_wrapper_example\Kernel\StreamWrapperTest::testSchemeRegistered()

Test if the session scheme was actually registered.

File

modules/stream_wrapper_example/tests/src/Kernel/StreamWrapperTest.php, line 48

Class

StreamWrapperTest
Test of the Session Stream Wrapper Class.

Namespace

Drupal\Tests\stream_wrapper_example\Kernel

Code

public function testSchemeRegistered() {
    $have_session_scheme = $this->container
        ->get('stream_wrapper_manager')
        ->isValidScheme('session');
    $this->assertTrue($have_session_scheme, "System knows about our stream wrapper");
}