You are here

ConfigurationItemTest.php in Features 8.4

Same filename and directory in other branches
  1. 8.3 tests/src/Unit/ConfigurationItemTest.php

File

tests/src/Unit/ConfigurationItemTest.php
View 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

Namesort descending Description
ConfigurationItemTest @coversDefaultClass \Drupal\features\ConfigurationItem @group features