Skip to content

Commit

Permalink
Address deprecations from the event dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored and OskarStark committed Jan 28, 2020
1 parent c7a4c0b commit 6f21cef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Admin/Extension/LockExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function testConfigureFormFields(): void
)->shouldBeCalled();

$this->lockExtension->configureFormFields($formMapper);
$this->eventDispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
$this->eventDispatcher->dispatch($event, FormEvents::PRE_SET_DATA);
}

public function testConfigureFormFieldsWhenModelManagerIsNotImplementingLockerInterface(): void
Expand All @@ -103,7 +103,7 @@ public function testConfigureFormFieldsWhenModelManagerIsNotImplementingLockerIn
$form->add()->shouldNotBeCalled();

$this->lockExtension->configureFormFields($formMapper);
$this->eventDispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
$this->eventDispatcher->dispatch($event, FormEvents::PRE_SET_DATA);
}

public function testConfigureFormFieldsWhenFormEventHasNoData(): void
Expand All @@ -115,7 +115,7 @@ public function testConfigureFormFieldsWhenFormEventHasNoData(): void
$form->add()->shouldNotBeCalled();

$this->lockExtension->configureFormFields($formMapper);
$this->eventDispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
$this->eventDispatcher->dispatch($event, FormEvents::PRE_SET_DATA);
}

public function testConfigureFormFieldsWhenFormHasParent(): void
Expand All @@ -128,7 +128,7 @@ public function testConfigureFormFieldsWhenFormHasParent(): void
$form->add()->shouldNotBeCalled();

$this->lockExtension->configureFormFields($formMapper);
$this->eventDispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
$this->eventDispatcher->dispatch($event, FormEvents::PRE_SET_DATA);
}

public function testConfigureFormFieldsWhenModelManagerHasNoLockedVersion(): void
Expand All @@ -142,7 +142,7 @@ public function testConfigureFormFieldsWhenModelManagerHasNoLockedVersion(): voi
$form->add()->shouldNotBeCalled();

$this->lockExtension->configureFormFields($formMapper);
$this->eventDispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
$this->eventDispatcher->dispatch($event, FormEvents::PRE_SET_DATA);
}

public function testPreUpdateIfAdminHasNoRequest(): void
Expand Down

0 comments on commit 6f21cef

Please sign in to comment.