function StreamWrapperTest::testGetClassName
7.x file.test | StreamWrapperTest::testGetClassName() |
Test the getClassName() function.
File
- drupal-7.x/
modules/ simpletest/ tests/ file.test, line 2733 - This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.
Class
- StreamWrapperTest
- Tests stream wrapper functions.
Code
function testGetClassName() {
// Check the dummy scheme.
$this->assertEqual($this->classname, file_stream_wrapper_get_class($this->scheme), 'Got correct class name for dummy scheme.');
// Check core's scheme.
$this->assertEqual('DrupalPublicStreamWrapper', file_stream_wrapper_get_class('public'), 'Got correct class name for public scheme.');
}