@@ -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 | |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | public function init() |
| 42 | 42 | { |
| 43 | 43 | $this->setName('emails') |
| 44 | - ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
| 44 | + ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
| 45 | 45 | |
| 46 | 46 | $this->add( |
| 47 | 47 | array('type' => Checkbox::class, |
| 48 | 48 | 'name' => 'mailAccess', |
| 49 | 49 | 'label' => 'foo', |
| 50 | 50 | 'options' => array('label' => /* @translate */ 'receive E-Mail alert', |
| 51 | - 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
| 51 | + 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
| 52 | 52 | ) |
| 53 | 53 | ); |
| 54 | 54 | $this->add( |
@@ -62,13 +62,13 @@ discard block |
||
| 62 | 62 | array('type' => 'Laminas\Form\Element\Checkbox', |
| 63 | 63 | 'name' => 'autoConfirmMail', |
| 64 | 64 | 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit', |
| 65 | - 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
| 65 | + 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
| 66 | 66 | ) |
| 67 | 67 | ); |
| 68 | 68 | $this->add( |
| 69 | 69 | array('type' => 'Laminas\Form\Element\Textarea', |
| 70 | 70 | 'name' => 'mailConfirmationText', |
| 71 | - 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
| 71 | + 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
| 72 | 72 | 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' )) |
| 73 | 73 | ); |
| 74 | 74 | |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | // ), |
| 65 | 65 | // ) |
| 66 | 66 | |
| 67 | - // Initial configuration with which to seed the ServiceManager. |
|
| 68 | - // Should be compatible with Laminas\ServiceManager\Config. |
|
| 69 | - // 'service_manager' => array(), |
|
| 67 | + // Initial configuration with which to seed the ServiceManager. |
|
| 68 | + // Should be compatible with Laminas\ServiceManager\Config. |
|
| 69 | + // 'service_manager' => array(), |
|
| 70 | 70 | ); |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | class Form extends LaminasForm implements |
| 27 | 27 | DescriptionAwareFormInterface, |
| 28 | - DisableElementsCapableInterface, |
|
| 29 | - FormParentInterface |
|
| 28 | + DisableElementsCapableInterface, |
|
| 29 | + FormParentInterface |
|
| 30 | 30 | { |
| 31 | 31 | use EventManagerAwareTrait, HydratorStrategyAwareTrait; |
| 32 | 32 | |