From 7350c5105d00c2d922f26ff727b34fc3b744b8b5 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 1 Mar 2018 20:07:03 -0500 Subject: [PATCH] Fix tesets --- .../TicketCreatorTests/CreateTicketForCustomerTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/Tests/BusinessLogic/Tickets/TicketCreatorTests/CreateTicketForCustomerTest.php b/api/Tests/BusinessLogic/Tickets/TicketCreatorTests/CreateTicketForCustomerTest.php index 69d817d6..e911ee4b 100644 --- a/api/Tests/BusinessLogic/Tickets/TicketCreatorTests/CreateTicketForCustomerTest.php +++ b/api/Tests/BusinessLogic/Tickets/TicketCreatorTests/CreateTicketForCustomerTest.php @@ -19,6 +19,7 @@ use BusinessLogic\Tickets\VerifiedEmailChecker; use BusinessLogic\ValidationModel; use Core\Constants\Priority; use DataAccess\AuditTrail\AuditTrailGateway; +use DataAccess\CustomFields\CustomFieldsGateway; use DataAccess\Security\UserGateway; use DataAccess\Settings\ModsForHeskSettingsGateway; use DataAccess\Statuses\StatusGateway; @@ -101,6 +102,9 @@ class CreateTicketTest extends TestCase { /* @var $auditTrailGateway \PHPUnit_Framework_MockObject_MockObject|AuditTrailGateway */ private $auditTrailGateway; + /* @var $customFieldsGateway \PHPUnit_Framework_MockObject_MockObject|CustomFieldsGateway */ + private $customFieldsGateway; + protected function setUp() { $this->ticketGateway = $this->createMock(TicketGateway::clazz()); $this->newTicketValidator = $this->createMock(NewTicketValidator::clazz()); @@ -115,7 +119,7 @@ class CreateTicketTest extends TestCase { $this->ticketCreator = new TicketCreator($this->newTicketValidator, $this->trackingIdGenerator, $this->autoassigner, $this->statusGateway, $this->ticketGateway, $this->verifiedEmailChecker, - $this->emailSenderHelper, $this->userGateway, $this->modsForHeskSettingsGateway, $this->auditTrailGateway); + $this->emailSenderHelper, $this->userGateway, $this->modsForHeskSettingsGateway, $this->auditTrailGateway, $this->customFieldsGateway); $this->ticketRequest = new CreateTicketByCustomerModel(); $this->ticketRequest->name = 'Name';