From a13baf56a9bc890cd91752163d4f626a6cf0fda9 Mon Sep 17 00:00:00 2001 From: Aday Bujeda Date: Thu, 19 Dec 2024 15:35:37 +0000 Subject: [PATCH] Fixed tests after PPRFirstNameEmailService updates --- .../tests/src/services/email/PPRFirstNameEmailServiceTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pprOjsPlugin/tests/src/services/email/PPRFirstNameEmailServiceTest.php b/pprOjsPlugin/tests/src/services/email/PPRFirstNameEmailServiceTest.php index 6e58f06..fa0d49b 100644 --- a/pprOjsPlugin/tests/src/services/email/PPRFirstNameEmailServiceTest.php +++ b/pprOjsPlugin/tests/src/services/email/PPRFirstNameEmailServiceTest.php @@ -36,13 +36,15 @@ public function test_register_should_register_service_hooks_when_firstNameEmailE $target = new PPRFirstNameEmailService($pprPluginMock); $target->register(); - $this->assertEquals(7, $this->countHooks()); + $this->assertEquals(9, $this->countHooks()); $this->assertEquals(1, count($this->getHooks('Mail::send'))); $this->assertEquals(1, count($this->getHooks('reviewreminderform::display'))); $this->assertEquals(1, count($this->getHooks('thankreviewerform::display'))); $this->assertEquals(1, count($this->getHooks('sendreviewsform::display'))); $this->assertEquals(1, count($this->getHooks('TemplateManager::fetch'))); $this->assertEquals(1, count($this->getHooks('advancedsearchreviewerform::display'))); + $this->assertEquals(1, count($this->getHooks('createreviewerform::display'))); + $this->assertEquals(1, count($this->getHooks('createreviewerform::execute'))); $this->assertEquals(1, count($this->getHooks('LoadComponentHandler'))); }