public function StreamWrapperTest::testSchemeRegistered in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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\KernelCode
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");
}