Pantheon\Terminus\UnitTests\Commands\Connection\SetCommandTest::testConnectionSetNoOp PHP Method

testConnectionSetNoOp() public method

Exercises connection:set git mode
    public function testConnectionSetNoOp()
    {
        $this->environment->expects($this->once())->method('changeConnectionMode')->with($this->equalTo('the-current-mode'))->willReturn('noop');
        // should display a notice about the mode switch
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('noop'));
        // trigger command call expectations
        $this->command->connectionSet('dummy-site.dummy-env', 'the-current-mode');
    }