Refactor names in CommandResolverInterface
This commit is contained in:
1 parent
07f8ae467c
commit
9ab9561270
5 files changed
+68
-10
No files matched your search
@@ -48,8 +48,8 @@ class CommandRegistryTest extends \PHPUnit\Framework\TestCase
|
||||
$reg->register('a', $cmda);
|
||||
$reg->register('b', $cmdb);
|
||||
|
||||
$this->assertEquals('a', $reg->find('a')?->getName());
|
||||
$this->assertEquals('b', $reg->find('b')?->getName());
|
||||
$this->assertEquals('a', $reg->findCommand('a')?->getName());
|
||||
$this->assertEquals('b', $reg->findCommand('b')?->getName());
|
||||
}
|
||||
|
||||
public function testGettingCommandNames()
|
||||
@@ -61,7 +61,7 @@ class CommandRegistryTest extends \PHPUnit\Framework\TestCase
|
||||
$reg->register('a', $cmda);
|
||||
$reg->register('b', $cmdb);
|
||||
|
||||
$this->assertEquals(['a','b'], $reg->getNames());
|
||||
$this->assertEquals(['a','b'], $reg->getCommandNames());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user