function PhpStorageFactoryTest::testGetNoSettings

Tests the get() method with no settings.

File

core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php, line 37

Class

PhpStorageFactoryTest
Tests the PHP storage factory.

Namespace

Drupal\Tests\system\Kernel\PhpStorage

Code

public function testGetNoSettings() : void {
  $php = PhpStorageFactory::get('test');
  // This should be the default class used.
  $this->assertInstanceOf(MTimeProtectedFileStorage::class, $php);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.