ConfigurationItemTest.php in Features 8.4
Same filename and directory in other branches
Namespace
Drupal\Tests\features\UnitFile
tests/src/Unit/ConfigurationItemTest.phpView source
<?php
namespace Drupal\Tests\features\Unit;
use Drupal\features\ConfigurationItem;
use Drupal\features\FeaturesManagerInterface;
use PHPUnit\Framework\TestCase;
/**
* @coversDefaultClass \Drupal\features\ConfigurationItem
* @group features
*/
class ConfigurationItemTest extends TestCase {
/**
* @covers ::fromConfigStringToConfigType
*/
public function testFromConfigStringToConfigType() {
$this
->assertEquals('system.simple', ConfigurationItem::fromConfigStringToConfigType(FeaturesManagerInterface::SYSTEM_SIMPLE_CONFIG));
$this
->assertEquals('node', ConfigurationItem::fromConfigStringToConfigType('node'));
}
}
Classes
Name | Description |
---|---|
ConfigurationItemTest | @coversDefaultClass \Drupal\features\ConfigurationItem @group features |