protected function prepareAccountCostCenter($name) { foreach ($this->sets[$name] as &$accountCcData) { ApiTest::createEntity(new AccountCostCenterEntity(), ['ccId' => $accountCcData['ccId'], 'accountId' => static::$user->getAccountId()]); } }