/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->lock = $this->getMockBuilder(Lock::class)->disableOriginalConstructor()->getMock(); $this->environment->id = 'env_id'; $this->environment->expects($this->once())->method('getLock')->with()->willReturn($this->lock); }
/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->command = new WakeCommand(); $this->command->setSites($this->sites); $this->command->setLogger($this->logger); }
/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->command = new ClearCacheCommand($this->getConfig()); $this->command->setSites($this->sites); $this->command->setLogger($this->logger); }
/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->environment->expects($this->any())->method('domain')->willReturn('dev-my-site.example.com'); $this->command = new ViewCommand(); $this->command->setSites($this->sites); }
/** * @inheritdoc */ protected function setUp() { parent::setUp(); $this->command = new DeployCommand($this->getConfig()); $this->command->setLogger($this->logger); $this->command->setSites($this->sites); }
/** * @inheritdoc */ protected function setUp() { parent::setUp(); $this->command = new CloneContentCommand(); $this->command->setSites($this->sites); $this->command->setLogger($this->logger); }
/** * Sets up the test fixture. */ protected function setUp() { parent::setUp(); $this->command = new CommitCommand($this->getConfig()); $this->command->setLogger($this->logger); $this->command->setSites($this->sites); $this->environment->id = 'dev'; }
/** * @inheritdoc */ protected function setUp() { parent::setUp(); $this->command = new CodeLogCommand($this->getConfig()); $this->command->setLogger($this->logger); $this->command->setSites($this->sites); $this->commits = $this->getMockBuilder(Commits::class)->disableOriginalConstructor()->getMock(); $this->environment->method('getCommits')->willReturn($this->commits); $this->commit_1_attribs = ['datetime' => '2016-09-21T12:21:18', 'author' => 'Daisy Duck', 'labels' => ['test', 'dev'], 'hash' => 'c65e638f03cabc7b97e686bb9de843b7173e329a', 'message' => 'Add some new code']; $this->commit_1 = new Commit((object) $this->commit_1_attribs); $this->commit_2_attribs = ['datetime' => '2016-09-16T06:53:48', 'author' => 'Donald Duck', 'labels' => ['test', 'dev'], 'hash' => 'bccb7d4972a458e6c788c46bd1afb2de47d88ee3', 'message' => 'Remove some old code']; $this->commit_2 = new Commit((object) $this->commit_2_attribs); }