Pantheon\Terminus\UnitTests\Commands\Domain\DomainTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->domains = $this->getMockBuilder(Domains::class)->disableOriginalConstructor()->getMock();
        $this->environment->method('getDomains')->willReturn($this->domains);
        $this->domain = $this->getMockBuilder(Domain::class)->disableOriginalConstructor()->getMock();
    }

Usage Example

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