You are here

function StreamWrapperTest::testGetClassName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/File/StreamWrapperTest.php \Drupal\system\Tests\File\StreamWrapperTest::testGetClassName()

Test the getClassName() function.

File

core/modules/system/src/Tests/File/StreamWrapperTest.php, line 57
Contains \Drupal\system\Tests\File\StreamWrapperTest.

Class

StreamWrapperTest
Tests stream wrapper functions.

Namespace

Drupal\system\Tests\File

Code

function testGetClassName() {

  // Check the dummy scheme.
  $this
    ->assertEqual($this->classname, \Drupal::service('stream_wrapper_manager')
    ->getClass($this->scheme), 'Got correct class name for dummy scheme.');

  // Check core's scheme.
  $this
    ->assertEqual('Drupal\\Core\\StreamWrapper\\PublicStream', \Drupal::service('stream_wrapper_manager')
    ->getClass('public'), 'Got correct class name for public scheme.');
}