/** @test
  * @group
  * @depends it_creates_interest_group_with_mailChimp */
 public function it_deletes_interest_group_with_mailChimp($value)
 {
     $model = new DeleteInterestModel();
     $model->setInterestId($value);
     $interest = m::mock(Interest::class);
     $ia = new InterestActions(new Client(), $interest);
     $ia->remove($model);
 }
 /** @test
  * @group wip */
 public function it_deletes_interest_group()
 {
     $this->model = new DeleteInterestModel();
     $apiKey = getenv('MAILCHIMP_API');
     $this->guzzle->shouldReceive('request')->with('DELETE', $this->endpoint . "/3.0/lists/{$this->model->getInterestListId()}/interest-categories/{$this->model->getInterestCategoryId()}/interests/{$this->model->interest->interest_id}", ['headers' => ['Authorization' => 'OAuth ' . $apiKey]]);
     $interest = m::mock(Interest::class);
     $ia = new InterestActions($this->guzzle, $interest);
     $ia->remove($this->model);
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(InterestActions $mailChimp)
 {
     $mailChimp->add($this->model);
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(InterestActions $mailChimp)
 {
     $mailChimp->updateName($this->model);
 }