ImboCliUnitTest\Command\AddPublicKeyTest::testWillNotAcceptEmptyUserSpecification PHP Метод

testWillNotAcceptEmptyUserSpecification() публичный Метод

    public function testWillNotAcceptEmptyUserSpecification()
    {
        $helper = $this->command->getHelper('question');
        $helper->setInputStream($this->getInputStream(['0', '', '*', 'n']));
        $commandTester = new CommandTester($this->command);
        $commandTester->execute(['publicKey' => 'foo', 'privateKey' => 'bar']);
        $this->assertRegExp('/at least one user/', $commandTester->getDisplay(true));
    }