Pantheon\Terminus\UnitTests\Commands\Backup\BackupCommandTest::setUp PHP Méthode

setUp() protected méthode

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->backups = $this->getMockBuilder(Backups::class)->disableOriginalConstructor()->getMock();
        $this->environment->method('getBackups')->willReturn($this->backups);
        $this->backup = $this->getMockBuilder(Backup::class)->disableOriginalConstructor()->getMock();
        $this->workflow = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
    }

Usage Example

 /**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     $this->command = new CreateCommand($this->sites);
     $this->command->setLogger($this->logger);
     $this->command->setSites($this->sites);
 }
All Usage Examples Of Pantheon\Terminus\UnitTests\Commands\Backup\BackupCommandTest::setUp
BackupCommandTest