Pantheon\Terminus\UnitTests\Commands\Connection\InfoCommandTest::testConnectionInfo PHP Method

testConnectionInfo() public method

Ensure connection:info delegates to the Environment::connectionInfo()
public testConnectionInfo ( )
    public function testConnectionInfo()
    {
        // should delegate to the environment model appropriately
        $this->environment->expects($this->once())->method('connectionInfo')->willReturn(['foo' => 'bar']);
        // command execution
        $out = $this->command->connectionInfo('dummy-site.dev');
        // should return the correct type
        $this->assertInstanceOf(PropertyList::class, $out);
    }