Pantheon\Terminus\UnitTests\Commands\Upstream\Updates\UpdatesCommandTest::setUp PHP Метод

setUp() защищенный Метод

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->upstream = $this->getMockBuilder(Upstream::class)->disableOriginalConstructor()->getMock();
        $this->site->method('getUpstream')->willReturn($this->upstream);
    }

Usage Example

Пример #1
0
 /**
  * @inheritdoc
  */
 public function setUp()
 {
     parent::setUp();
     $this->command = new ListCommand($this->getConfig());
     $this->command->setSites($this->sites);
     $this->command->setLogger($this->logger);
 }
UpdatesCommandTest