Pantheon\Terminus\UnitTests\Commands\Multidev\CreateCommandTest::testCreate PHP Метод

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

Tests the multidev:create command
public testCreate ( )
    public function testCreate()
    {
        $multidev_name = 'multipass';
        $this->environment->id = 'dev';
        $this->workflow->method('isSuccessful')->with()->willReturn(true);
        $this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
        $this->workflow->expects($this->once())->method('getMessage')->with()->willReturn("Created Multidev environment \"{$multidev_name}\"");
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), "Created Multidev environment \"{$multidev_name}\"");
        $out = $this->command->create($multidev_name, $this->environment);
        $this->assertNull($out);
    }