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

testConnectionSetInvalidTestEnv() public method

Exercises connection:set with invalid test environment
    public function testConnectionSetInvalidTestEnv()
    {
        $this->environment->id = 'test';
        $this->setExpectedException(TerminusException::class, 'Connection mode cannot be set on the test environment');
        // trigger command call expectations
        $this->command->connectionSet('dummy-site.test', 'any-mode');
    }