Exemplo n.º 1
0
 public function testStopProcessGroup()
 {
     $this->config->method('callMethod')->with($this->equalTo('supervisor.stopProcessGroup'), $this->equalTo(['test-process']))->willReturn(true);
     $this->assertEquals(true, $this->group->stopProcessGroup());
 }
 /**
  * @param $groupName
  *
  * @return object
  * @throws \yii\base\InvalidConfigException
  */
 private function _supervisorGroup($groupName)
 {
     return \Yii::$container->get(Group::className(), [$groupName]);
 }