You are here

public function PhpStorageFactoryTest::testGetNoSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 40
Contains \Drupal\system\Tests\PhpStorage\PhpStorageFactoryTest.

Class

PhpStorageFactoryTest
Tests the PHP storage factory.

Namespace

Drupal\Tests\system\Kernel\PhpStorage

Code

public function testGetNoSettings() {
  $php = PhpStorageFactory::get('test');

  // This should be the default class used.
  $this
    ->assertTrue($php instanceof MTimeProtectedFileStorage, 'An MTimeProtectedFileStorage instance was returned with no settings.');
}