Pantheon\Terminus\UnitTests\Commands\Env\WakeCommandTest::testWakeEnv PHP Method

testWakeEnv() public method

Tests the env:wake command
public testWakeEnv ( )
    public function testWakeEnv()
    {
        $this->environment->expects($this->once())->method('wake')->with()->willReturn(['success' => true, 'target' => 'dev', 'time' => 1, 'styx' => 'yep!']);
        $this->logger->expects($this->at(0))->method('log')->with($this->equalTo('notice'), $this->equalTo('OK >> {target} responded in {time}'), $this->equalTo(['success' => true, 'target' => 'dev', 'time' => 1, 'styx' => 'yep!']));
        $out = $this->command->wake('mysite.dev');
        $this->assertNull($out);
    }