/** * クライアントの準備 * @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')); }
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); }