Pantheon\Terminus\UnitTests\Commands\Remote\SSHBaseCommandTest::testUnavailableWithSuggestion PHP Метод

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

    public function testUnavailableWithSuggestion()
    {
        //expected info and error messages
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('error'), $this->equalTo('That command is not available via Terminus. ' . 'Please use the native {command} command. ' . 'Hint: You may want to try `{suggestion}`.'), $this->equalTo(['command' => 'dummy', 'suggestion' => "terminus alternative"]));
        $output = $this->command->dummyCommand('site.env', ['avoided']);
        $this->assertEquals('', $output);
    }