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); }
/** * */ protected function account() { $account = Account::where('alias', env('APP_ALIAS'))->first(); return $account; }