@@ -8,15 +8,15 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | return [ |
11 | - 'tracy' => [ |
|
12 | - 'enabled' => true, // flag whether to load tracy at all |
|
13 | - 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | - 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | - 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | - 'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | - 'email' => null, // in production mode notifies the recipient |
|
18 | - 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | - ], |
|
11 | + 'tracy' => [ |
|
12 | + 'enabled' => true, // flag whether to load tracy at all |
|
13 | + 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | + 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | + 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | + 'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | + 'email' => null, // in production mode notifies the recipient |
|
18 | + 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | + ], |
|
20 | 20 | |
21 | 21 | 'doctrine' => [ |
22 | 22 | 'driver' => [ |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | 'invokables' => [ |
36 | 36 | 'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter', |
37 | 37 | ], |
38 | - 'factories' => [ |
|
39 | - 'mvctranslator' => \Laminas\Mvc\I18n\TranslatorFactory::class, |
|
40 | - 'FilterManager' => \Laminas\Filter\FilterPluginManagerFactory::class, |
|
38 | + 'factories' => [ |
|
39 | + 'mvctranslator' => \Laminas\Mvc\I18n\TranslatorFactory::class, |
|
40 | + 'FilterManager' => \Laminas\Filter\FilterPluginManagerFactory::class, |
|
41 | 41 | 'Tracy' => [\Core\Service\Tracy::class,'factory'], |
42 | 42 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
43 | 43 | ], |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | ], |
64 | 64 | |
65 | 65 | 'controllers' => [ |
66 | - 'abstract_factories' => [ |
|
67 | - \Install\Factory\Controller\LazyControllerFactory::class |
|
68 | - ], |
|
66 | + 'abstract_factories' => [ |
|
67 | + \Install\Factory\Controller\LazyControllerFactory::class |
|
68 | + ], |
|
69 | 69 | ], |
70 | 70 | |
71 | 71 | 'controller_plugins' => [ |
@@ -74,8 +74,8 @@ |
||
74 | 74 | $this->target->setPluginManager($plugins); |
75 | 75 | |
76 | 76 | $params = $this->getMockBuilder('\Laminas\Mvc\Controller\Plugin\Params') |
77 | - ->disableOriginalConstructor() |
|
78 | - ->getMock() |
|
77 | + ->disableOriginalConstructor() |
|
78 | + ->getMock() |
|
79 | 79 | ; |
80 | 80 | $params |
81 | 81 | ->expects($this->any()) |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | $this->authMock = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock(); |
50 | 50 | $this->organizationRepositoryMock = $this->getMockBuilder('Organizations\Repository\Organization') |
51 | - ->disableOriginalConstructor()->getMock(); |
|
51 | + ->disableOriginalConstructor()->getMock(); |
|
52 | 52 | $this->userRepositoryMock = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock(); |
53 | 53 | |
54 | 54 | if (false !== strpos($this->getName(false), 'Setter')) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $employee->expects($this->once())->method('setStatus')->with(Employee::STATUS_ASSIGNED); |
78 | 78 | |
79 | 79 | $this->organizationMock->expects($this->once())->method('getEmployee')->with($this->userMock->getId()) |
80 | - ->willReturn($employee); |
|
80 | + ->willReturn($employee); |
|
81 | 81 | |
82 | 82 | $this->organizationMock->expects($this->any())->method('getId')->willReturn('testOrgId'); |
83 | 83 | $this->userRepositoryMock->expects($this->once())->method('findByToken')->with('testToken')->willReturn($this->userMock); |
@@ -104,9 +104,9 @@ discard block |
||
104 | 104 | ->willReturn($unassignedEmp); |
105 | 105 | |
106 | 106 | $this->organizationRepositoryMock->expects($this->once()) |
107 | - ->method('findPendingOrganizationsByEmployee') |
|
108 | - ->with($this->userMock->getId()) |
|
109 | - ->willReturn(array($sameOrganization, $assignedEmpOrganization, $unassignedEmpOrganization)); |
|
107 | + ->method('findPendingOrganizationsByEmployee') |
|
108 | + ->with($this->userMock->getId()) |
|
109 | + ->willReturn(array($sameOrganization, $assignedEmpOrganization, $unassignedEmpOrganization)); |
|
110 | 110 | |
111 | 111 | $storageMock = $this->getMockForAbstractClass('\Laminas\Authentication\Storage\StorageInterface'); |
112 | 112 | $storageMock->expects($this->once())->method('write')->with($this->userMock->getId()); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $orgRef = $this->getMockBuilder('\Organizations\Entity\OrganizationReference')->disableOriginalConstructor()->getMock(); |
178 | 178 | $orgRef->expects($this->once())->method('hasAssociation')->willReturn(true); |
179 | 179 | $orgRef->expects($this->once())->method('getEmployee')->with($this->userMock->getId()) |
180 | - ->willReturn($empMock); |
|
180 | + ->willReturn($empMock); |
|
181 | 181 | |
182 | 182 | $this->userMock->setOrganization($orgRef); |
183 | 183 |
@@ -40,12 +40,12 @@ |
||
40 | 40 | $target = new CheckJobCreatePermissionListener(); |
41 | 41 | |
42 | 42 | $events = $this->getMockBuilder('\Laminas\EventManager\SharedEventManager') |
43 | - ->disableOriginalConstructor() |
|
44 | - ->getMock(); |
|
43 | + ->disableOriginalConstructor() |
|
44 | + ->getMock(); |
|
45 | 45 | |
46 | 46 | $events->expects($this->once()) |
47 | - ->method('attach') |
|
48 | - ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
47 | + ->method('attach') |
|
48 | + ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
49 | 49 | |
50 | 50 | $target->attachShared($events); |
51 | 51 | } |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | |
118 | 118 | $orgRep = $this->getMockBuilder('\Organizations\Repository\Organization')->disableOriginalConstructor()->getMock(); |
119 | 119 | $orgRep->expects($this->exactly(2)) |
120 | - ->method('findByUser') |
|
121 | - ->withConsecutive(array('testOwner'), array('testUser')) |
|
122 | - ->will($this->onConsecutiveCalls($ownerOrg, $userOrg)); |
|
120 | + ->method('findByUser') |
|
121 | + ->withConsecutive(array('testOwner'), array('testUser')) |
|
122 | + ->will($this->onConsecutiveCalls($ownerOrg, $userOrg)); |
|
123 | 123 | |
124 | 124 | |
125 | 125 | $ownerOrgRef = new OrganizationReference('testOwner', $orgRep); |
@@ -136,25 +136,25 @@ discard block |
||
136 | 136 | |
137 | 137 | $router = $this->getMockForAbstractClass(RouteStackInterface::class); |
138 | 138 | $router->expects($this->once()) |
139 | - ->method('assemble') |
|
140 | - ->with( |
|
141 | - array('action' => 'accept'), |
|
142 | - array('name' => 'lang/organizations/invite', |
|
139 | + ->method('assemble') |
|
140 | + ->with( |
|
141 | + array('action' => 'accept'), |
|
142 | + array('name' => 'lang/organizations/invite', |
|
143 | 143 | 'query' => array('token' => $options['token'], 'organization' => $ownerOrg->getId())) |
144 | - ) |
|
145 | - ->willReturn('testUrl'); |
|
144 | + ) |
|
145 | + ->willReturn('testUrl'); |
|
146 | 146 | |
147 | 147 | $mailService = $this->getMockBuilder('\Core\Mail\MailService')->disableOriginalConstructor()->getMock(); |
148 | 148 | |
149 | 149 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock(); |
150 | 150 | |
151 | 151 | $services->expects($this->exactly(3)) |
152 | - ->method('get') |
|
153 | - ->withConsecutive( |
|
154 | - array('AuthenticationService'), |
|
155 | - array('Router'), |
|
156 | - ['Core/MailService'] |
|
157 | - )->will($this->onConsecutiveCalls($authService, $router, $mailService)); |
|
152 | + ->method('get') |
|
153 | + ->withConsecutive( |
|
154 | + array('AuthenticationService'), |
|
155 | + array('Router'), |
|
156 | + ['Core/MailService'] |
|
157 | + )->will($this->onConsecutiveCalls($authService, $router, $mailService)); |
|
158 | 158 | |
159 | 159 | $mailMock = new HTMLTemplateMessage(new \Laminas\ServiceManager\ServiceManager()); |
160 | 160 | $translator = $this->getMockBuilder('\Laminas\I18n\Translator\Translator')->disableOriginalConstructor()->getMock(); |
@@ -55,17 +55,17 @@ |
||
55 | 55 | $auth = $this->getMockBuilder('\Auth\AuthenticationService')->disableOriginalConstructor()->getMock(); |
56 | 56 | |
57 | 57 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock() |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock() |
|
60 | 60 | ; |
61 | 61 | $services->expects($this->exactly(2)) |
62 | - ->method('get') |
|
63 | - ->will($this->returnValueMap( |
|
64 | - array( |
|
62 | + ->method('get') |
|
63 | + ->will($this->returnValueMap( |
|
64 | + array( |
|
65 | 65 | array('repositories',$repositories), |
66 | 66 | array('AuthenticationService', $auth) |
67 | 67 | ) |
68 | - )) |
|
68 | + )) |
|
69 | 69 | ; |
70 | 70 | |
71 | 71 | $target = new AcceptInvitationHandlerFactory(); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $target = new InvitationHandlerFactory(); |
47 | 47 | |
48 | 48 | $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator') |
49 | - ->disableOriginalConstructor()->getMock(); |
|
49 | + ->disableOriginalConstructor()->getMock(); |
|
50 | 50 | |
51 | 51 | $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock(); |
52 | 52 | |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | $translator = new \Laminas\I18n\Translator\Translator(); |
57 | 57 | |
58 | 58 | $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer') |
59 | - ->disableOriginalConstructor() |
|
60 | - ->getMock() |
|
59 | + ->disableOriginalConstructor() |
|
60 | + ->getMock() |
|
61 | 61 | ; |
62 | 62 | |
63 | 63 | $pluginManager = $this->getMockBuilder(PluginManager::class) |
@@ -78,14 +78,14 @@ discard block |
||
78 | 78 | |
79 | 79 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock(); |
80 | 80 | $services->expects($this->exactly(5)) |
81 | - ->method('get') |
|
82 | - ->will($this->returnValueMap(array( |
|
83 | - array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
84 | - array('translator', $translator), |
|
85 | - array('repositories', $repositories), |
|
86 | - array('Auth/UserTokenGenerator', $tokenGenerator), |
|
87 | - array('ControllerPluginManager',$pluginManager), |
|
88 | - ))); |
|
81 | + ->method('get') |
|
82 | + ->will($this->returnValueMap(array( |
|
83 | + array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true) |
|
84 | + array('translator', $translator), |
|
85 | + array('repositories', $repositories), |
|
86 | + array('Auth/UserTokenGenerator', $tokenGenerator), |
|
87 | + array('ControllerPluginManager',$pluginManager), |
|
88 | + ))); |
|
89 | 89 | |
90 | 90 | /* |
91 | 91 | * test start here |
@@ -49,11 +49,11 @@ |
||
49 | 49 | |
50 | 50 | $repos = $this->getMockBuilder('\Core\Repository\RepositoryService')->disableOriginalConstructor()->getMock(); |
51 | 51 | $repos->expects($this->once()) |
52 | - ->method('get')->with('Auth/User')->willReturn($users); |
|
52 | + ->method('get')->with('Auth/User')->willReturn($users); |
|
53 | 53 | |
54 | 54 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock(); |
55 | 55 | $services->expects($this->once()) |
56 | - ->method('get')->with('repositories')->willReturn($repos); |
|
56 | + ->method('get')->with('repositories')->willReturn($repos); |
|
57 | 57 | |
58 | 58 | $fieldset = $target->__invoke($services, 'irrelevant'); |
59 | 59 |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | |
47 | 47 | $headscript = $this->getMockBuilder('\Laminas\View\Helper\HeadScript')->disableOriginalConstructor()->getMock(); |
48 | 48 | $headscript->expects($this->once()) |
49 | - ->method('__call') |
|
50 | - ->with('appendFile', array('modules/Organizations/js/organizations.employees.js')) |
|
51 | - ->willReturn(null); |
|
49 | + ->method('__call') |
|
50 | + ->with('appendFile', array('modules/Organizations/js/organizations.employees.js')) |
|
51 | + ->willReturn(null); |
|
52 | 52 | |
53 | 53 | $basepath = $this->getMockBuilder('\Laminas\View\Helper\BasePath')->disableOriginalConstructor()->getMock(); |
54 | 54 | $basepath->expects($this->once()) |
55 | - ->method('__invoke') |
|
56 | - ->with('modules/Organizations/js/organizations.employees.js') |
|
57 | - ->will($this->returnArgument(0)); |
|
55 | + ->method('__invoke') |
|
56 | + ->with('modules/Organizations/js/organizations.employees.js') |
|
57 | + ->will($this->returnArgument(0)); |
|
58 | 58 | |
59 | 59 | $helpers = $this->getMockBuilder('\Laminas\View\HelperPluginManager')->disableOriginalConstructor()->getMock(); |
60 | 60 | $helpers->expects($this->exactly(2)) |
@@ -66,12 +66,12 @@ discard block |
||
66 | 66 | ->will($this->onConsecutiveCalls($headscript, $basepath)); |
67 | 67 | |
68 | 68 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor() |
69 | - ->getMock(); |
|
69 | + ->getMock(); |
|
70 | 70 | |
71 | 71 | $services->expects($this->once()) |
72 | - ->method('get') |
|
73 | - ->with('ViewHelperManager') |
|
74 | - ->willReturn($helpers); |
|
72 | + ->method('get') |
|
73 | + ->with('ViewHelperManager') |
|
74 | + ->willReturn($helpers); |
|
75 | 75 | |
76 | 76 | $fieldset = $target->__invoke($services, 'irrelevant'); |
77 | 77 |