You are here

public function FileCacheFactoryTest::testGetNoPrefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetNoPrefix()

@covers ::get

@expectedException \InvalidArgumentException @expectedExceptionMessage Required prefix configuration is missing

File

core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php, line 68
Contains \Drupal\Tests\Component\FileCache\FileCacheFactoryTest.

Class

FileCacheFactoryTest
@coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory @group FileCache

Namespace

Drupal\Tests\Component\FileCache

Code

public function testGetNoPrefix() {
  FileCacheFactory::setPrefix(NULL);
  FileCacheFactory::get('test_foo_settings', []);
}