drupalmoduleupgrader-8.x-1.5/tests/src/Unit/Utility/Path/Drupal7/PathComponentTest.php

tests/src/Unit/Utility/Path/Drupal7/PathComponentTest.php
<?php

namespace Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal7;

use Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathComponent;
use Drupal\Tests\UnitTestCase;

/**
 * @group DMU.Utility.Path
 */
class PathComponentTest extends UnitTestCase {

  public function testPathComponent() {
    $placeholder = new PathComponent('%');
    $this->assertTrue($placeholder->isPlaceholder());
    $this->assertFalse($placeholder->isWildcard());
    $this->assertEquals('%', $placeholder->__toString());

    $wildcard = new PathComponent('%node');
    $this->assertTrue($wildcard->isWildcard());
    $this->assertFalse($wildcard->isPlaceholder());
    $this->assertEquals('%node', $wildcard->__toString('%node'));
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc