public function PhpStorageFactoryTest::testGetNoSettings in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php \Drupal\Tests\system\Kernel\PhpStorage\PhpStorageFactoryTest::testGetNoSettings()
Tests the get() method with no settings.
File
- core/modules/ system/ tests/ src/ Kernel/ PhpStorage/ PhpStorageFactoryTest.php, line 35 
Class
- PhpStorageFactoryTest
- Tests the PHP storage factory.
Namespace
Drupal\Tests\system\Kernel\PhpStorageCode
public function testGetNoSettings() {
  $php = PhpStorageFactory::get('test');
  // This should be the default class used.
  $this
    ->assertInstanceOf(MTimeProtectedFileStorage::class, $php);
}