Pantheon\Terminus\UnitTests\Commands\NewRelic\NewRelicCommandTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->new_relic = $this->getMockBuilder(NewRelic::class)->disableOriginalConstructor()->getMock();
        $this->site->method('getNewRelic')->willReturn($this->new_relic);
    }

Usage Example

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