public function testActivationWillActivateSystemProducts()
 {
     $system = Account::where('alias', 'digiredo')->first();
     list($account, $brand, $category) = $this->baseData();
     $this->products($brand, $system, $category);
     $this->needsActivationCommandsDispatched();
     $catalog = app(CatalogRepositoryInterface::class);
     $gamma = $this->gammaMock($account, $brand, $category);
     $job = new BatchGammaActivation($category, $account, $brand);
     $job->handle($catalog, $gamma);
 }
Esempio n. 2
0
 /**
  *
  */
 protected function account()
 {
     $account = Account::where('alias', env('APP_ALIAS'))->first();
     return $account;
 }