Example #1
0
 /**
  * クライアントの準備
  * @return void
  */
 protected function boot()
 {
     $this->container->set('config', $this->config);
     $this->container->set('api', $this->container->get(QiitaAPIInterface::class));
     Model::setFactory($this->container);
     Model::setApi($this->container->get('api'));
 }
Example #2
0
 protected function readyApiMock()
 {
     $this->apiMock = \Mockery::mock(QiitaAPIInterface::class);
     $this->container->set('api', $this->apiMock);
     $this->container->set(QiitaAPIInterface::class, $this->apiMock);
     Model::setApi($this->apiMock);
 }