
| Current Path : /var/www/html/holz-machines/web/core/tests/Drupal/Tests/Core/Config/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/holz-machines/web/core/tests/Drupal/Tests/Core/Config/NullStorageTest.php |
<?php
namespace Drupal\Tests\Core\Config;
use Drupal\Core\Config\NullStorage;
use Drupal\Core\Config\StorageInterface;
use Drupal\Tests\UnitTestCase;
/**
* Tests the NullStorage.
*
* @group Config
*/
class NullStorageTest extends UnitTestCase {
/**
* Tests createCollection.
*/
public function testCollection() {
$nullStorage = new NullStorage();
$collection = $nullStorage->createCollection('test');
$this->assertInstanceOf(StorageInterface::class, $collection);
$this->assertEquals(StorageInterface::DEFAULT_COLLECTION, $nullStorage->getCollectionName());
$this->assertEquals('test', $collection->getCollectionName());
$this->assertSame([], $collection->getAllCollectionNames());
}
}