Refactor, use a Collection
wip
This commit is contained in:
parent
9418ba4ee7
commit
b773e0f76f
6 changed files with 174 additions and 80 deletions
20
tests/Service/TestNameConverterTest.php
Normal file
20
tests/Service/TestNameConverterTest.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue