Skip to content

Commit

Permalink
MAE-398: Fix a typo && remove unnecessary fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ahed-compucorp committed Dec 18, 2020
1 parent 5427d91 commit e21eae3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CRM/EventsExtras/Test/Fabricator/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CRM_EventsExtras_Test_Fabricator_Event extends BaseFabricator {
public static function fabricate(array $params = []) {
$startDate = new DateTime();

$eventType = self::createEvenType();
$eventType = self::createEventType();
$eventTypeId = $eventType['value'];

$defaultParams = array_merge(static::$defaultParams, [
Expand All @@ -46,14 +46,10 @@ public static function fabricate(array $params = []) {
return parent::fabricate($params);
}

private static function createEvenType() {
private static function createEventType() {
$result = civicrm_api3('OptionValue', 'create', [
'option_group_id' => 'event_type',
'name' => 'Conference',
'label' => 'Conference',
'weight' => 1,
'is_active' => 1,
'is_reserved' => 1,
]);
$eventType = array_shift($result['values']);

Expand Down

0 comments on commit e21eae3

Please sign in to comment.