Pantheon\Terminus\UnitTests\Commands\Env\InfoCommandTest::testInfo PHP Метод

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

Tests the env:info command
public testInfo ( )
    public function testInfo()
    {
        $data = ['foo' => 'bar', 'baz' => 'bop'];
        $this->environment->expects($this->once())->method('serialize')->willReturn($data);
        $this->command = new InfoCommand();
        $this->command->setSites($this->sites);
        $out = $this->command->info('mysite.dev');
        $this->assertInstanceOf(PropertyList::class, $out);
        $this->assertEquals($data, $out->getArrayCopy());
    }
InfoCommandTest