This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupal-module-generator/tests/Service/TestNameConverterTest.php
2020-02-09 18:51:20 +00:00

20 lines
516 B
PHP

<?php
namespace Opdavies\Tests\DrupalModuleGenerator\Service;
use Opdavies\DrupalModuleGenerator\Service\TestNameConverter;
use PHPUnit\Framework\TestCase;
final class TestNameConverterTest extends TestCase
{
/** @test */
public function it_converts_a_module_name_into_a_test_name()
{
$testNameConverter = new TestNameConverter();
$moduleName = 'my_module';
$testName = 'MyModuleTest';
$this->assertSame($testName, $testNameConverter->__invoke($moduleName));
}
}