public function execute(DeleteTranslationKeyAction $action) { $key = $action->getKey(); $this->translationRepository->removeKey($key); }
function it_should_edit_translation(TranslationRepository $translationRepository, EventDispatcherInterface $eventDispatcher, Key $key, DeleteTranslationKeyAction $action) { $action->getKey()->willReturn($key); $translationRepository->removeKey($key)->shouldBeCalled(); $this->execute($action); }