@@ -24,16 +24,16 @@ |
||
24 | 24 | public function testFactory($config) |
25 | 25 | { |
26 | 26 | $serviceManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
27 | - ->disableOriginalConstructor()->getMock(); |
|
27 | + ->disableOriginalConstructor()->getMock(); |
|
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | 31 | if (isset($config['core_options'])) { |
32 | 32 | $coreOptions = new \Core\Options\ModuleOptions($config['core_options']); |
33 | 33 | $serviceManager->expects($this->exactly(2)) |
34 | - ->method('get') |
|
35 | - ->withConsecutive(array('Config'), array('Core/Options')) |
|
36 | - ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
34 | + ->method('get') |
|
35 | + ->withConsecutive(array('Config'), array('Core/Options')) |
|
36 | + ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
37 | 37 | } else { |
38 | 38 | $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config); |
39 | 39 | } |
@@ -45,17 +45,17 @@ |
||
45 | 45 | )); |
46 | 46 | |
47 | 47 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
48 | - ->disableOriginalConstructor() |
|
49 | - ->getMock(); |
|
48 | + ->disableOriginalConstructor() |
|
49 | + ->getMock(); |
|
50 | 50 | |
51 | 51 | $services->expects($this->exactly(3)) |
52 | - ->method('get') |
|
53 | - ->withConsecutive( |
|
54 | - array('Core/MailService'), |
|
55 | - array('Jobs/Options'), |
|
56 | - array('Core/Options') |
|
57 | - ) |
|
58 | - ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
52 | + ->method('get') |
|
53 | + ->withConsecutive( |
|
54 | + array('Core/MailService'), |
|
55 | + array('Jobs/Options'), |
|
56 | + array('Core/Options') |
|
57 | + ) |
|
58 | + ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
59 | 59 | |
60 | 60 | $expectedOptions = array( |
61 | 61 | 'siteName' => $coreOptions->getSiteName(), |
@@ -52,10 +52,10 @@ |
||
52 | 52 | { |
53 | 53 | $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock(); |
54 | 54 | $select->expects($this->once()) |
55 | - ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
55 | + ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
56 | 56 | |
57 | 57 | $select->expects($this->once()) |
58 | - ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
58 | + ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
59 | 59 | |
60 | 60 | $factory = $this->getMockBuilder('\Laminas\ServiceManager\FactoryInterface') |
61 | 61 | ->setMethods(array('__invoke')) |
@@ -78,21 +78,21 @@ |
||
78 | 78 | $this->user = $user; |
79 | 79 | |
80 | 80 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
81 | - ->disableOriginalConstructor() |
|
82 | - ->getMock(); |
|
81 | + ->disableOriginalConstructor() |
|
82 | + ->getMock(); |
|
83 | 83 | |
84 | 84 | $auth->expects($this->once()) |
85 | - ->method('getUser') |
|
86 | - ->willReturn($user); |
|
85 | + ->method('getUser') |
|
86 | + ->willReturn($user); |
|
87 | 87 | |
88 | 88 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
89 | - ->disableOriginalConstructor() |
|
90 | - ->getMock(); |
|
89 | + ->disableOriginalConstructor() |
|
90 | + ->getMock(); |
|
91 | 91 | |
92 | 92 | $services->expects($this->once()) |
93 | - ->method('get') |
|
94 | - ->with('AuthenticationService') |
|
95 | - ->willReturn($auth); |
|
93 | + ->method('get') |
|
94 | + ->with('AuthenticationService') |
|
95 | + ->willReturn($auth); |
|
96 | 96 | |
97 | 97 | $this->services = $services; |
98 | 98 | } |
@@ -43,8 +43,8 @@ |
||
43 | 43 | $provider=new ProviderOptions(); |
44 | 44 | |
45 | 45 | $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
46 | - ->disableOriginalConstructor() |
|
47 | - ->getMock(); |
|
46 | + ->disableOriginalConstructor() |
|
47 | + ->getMock(); |
|
48 | 48 | |
49 | 49 | |
50 | 50 | $serviceManagerMock |
@@ -33,44 +33,44 @@ |
||
33 | 33 | protected function addElements() |
34 | 34 | { |
35 | 35 | $this->add( |
36 | - [ |
|
37 | - 'name' => 'l', |
|
38 | - 'type' => 'LocationSelect', |
|
39 | - 'options' => [ |
|
40 | - 'label' => /*@translate*/ 'Location', |
|
41 | - 'span' => 3, |
|
42 | - 'location_entity' => Location::class, |
|
43 | - ], |
|
44 | - 'attributes' => [ |
|
45 | - 'data-width' => '100%', |
|
46 | - ], |
|
47 | - ] |
|
36 | + [ |
|
37 | + 'name' => 'l', |
|
38 | + 'type' => 'LocationSelect', |
|
39 | + 'options' => [ |
|
40 | + 'label' => /*@translate*/ 'Location', |
|
41 | + 'span' => 3, |
|
42 | + 'location_entity' => Location::class, |
|
43 | + ], |
|
44 | + 'attributes' => [ |
|
45 | + 'data-width' => '100%', |
|
46 | + ], |
|
47 | + ] |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | $this->add( |
51 | - [ |
|
52 | - 'name' => 'd', |
|
53 | - 'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select |
|
54 | - 'options' => [ |
|
55 | - 'label' => /*@translate*/ 'Distance', |
|
56 | - 'value_options' => [ |
|
57 | - '5' => '5 km', |
|
58 | - '10' => '10 km', |
|
59 | - '20' => '20 km', |
|
60 | - '50' => '50 km', |
|
61 | - '100' => '100 km' |
|
62 | - ], |
|
63 | - 'span' => 4, |
|
51 | + [ |
|
52 | + 'name' => 'd', |
|
53 | + 'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select |
|
54 | + 'options' => [ |
|
55 | + 'label' => /*@translate*/ 'Distance', |
|
56 | + 'value_options' => [ |
|
57 | + '5' => '5 km', |
|
58 | + '10' => '10 km', |
|
59 | + '20' => '20 km', |
|
60 | + '50' => '50 km', |
|
61 | + '100' => '100 km' |
|
62 | + ], |
|
63 | + 'span' => 4, |
|
64 | 64 | |
65 | - ], |
|
66 | - 'attributes' => [ |
|
67 | - 'value' => '10', // default distance |
|
68 | - 'data-searchbox' => -1, // hide the search box |
|
69 | - 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | - 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | - 'data-width' => '100%', |
|
72 | - ] |
|
73 | - ] |
|
65 | + ], |
|
66 | + 'attributes' => [ |
|
67 | + 'value' => '10', // default distance |
|
68 | + 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | + 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | + 'data-width' => '100%', |
|
72 | + ] |
|
73 | + ] |
|
74 | 74 | ); |
75 | 75 | } |
76 | 76 | } |
@@ -78,61 +78,61 @@ |
||
78 | 78 | ] |
79 | 79 | ], |
80 | 80 | [ |
81 | - 'type' => 'Core/Datepicker', |
|
82 | - 'name' => 'endDate', |
|
83 | - 'options' => [ |
|
84 | - 'label' => 'End date' |
|
85 | - ], |
|
81 | + 'type' => 'Core/Datepicker', |
|
82 | + 'name' => 'endDate', |
|
83 | + 'options' => [ |
|
84 | + 'label' => 'End date' |
|
85 | + ], |
|
86 | 86 | ], |
87 | - [ |
|
88 | - 'type' => 'checkbox', |
|
89 | - 'name' => 'currentIndicator', |
|
90 | - 'options' => [ |
|
91 | - 'label' => 'ongoing' |
|
92 | - ] |
|
93 | - ], |
|
94 | - [ |
|
95 | - 'name' => 'competencyName', |
|
96 | - 'options' => [ |
|
97 | - 'label' => 'Degree'], |
|
98 | - 'attributes' => [ |
|
99 | - 'title' => 'please enter the name of your qualification' |
|
100 | - ], |
|
101 | - ], |
|
102 | - [ |
|
103 | - 'name' => 'organizationName', |
|
104 | - 'options' => [ |
|
105 | - 'label' => 'Organization Name'], |
|
106 | - 'attributes' => [ |
|
107 | - 'title' => 'please enter the name of the university or school' |
|
108 | - ], |
|
109 | - ], |
|
87 | + [ |
|
88 | + 'type' => 'checkbox', |
|
89 | + 'name' => 'currentIndicator', |
|
90 | + 'options' => [ |
|
91 | + 'label' => 'ongoing' |
|
92 | + ] |
|
93 | + ], |
|
94 | + [ |
|
95 | + 'name' => 'competencyName', |
|
96 | + 'options' => [ |
|
97 | + 'label' => 'Degree'], |
|
98 | + 'attributes' => [ |
|
99 | + 'title' => 'please enter the name of your qualification' |
|
100 | + ], |
|
101 | + ], |
|
102 | + [ |
|
103 | + 'name' => 'organizationName', |
|
104 | + 'options' => [ |
|
105 | + 'label' => 'Organization Name'], |
|
106 | + 'attributes' => [ |
|
107 | + 'title' => 'please enter the name of the university or school' |
|
108 | + ], |
|
109 | + ], |
|
110 | 110 | [ |
111 | - 'name' => 'country', |
|
112 | - 'options' => [ |
|
113 | - 'label' => 'Country'], |
|
114 | - 'attributes' => [ |
|
115 | - 'title' => /*@translate */ 'please select the country' |
|
116 | - ], |
|
117 | - ], |
|
118 | - [ |
|
119 | - 'name' => 'city', |
|
120 | - 'options' => [ |
|
121 | - 'label' => 'City'], |
|
122 | - 'attributes' => [ |
|
123 | - 'title' => 'please enter the name of the city' |
|
124 | - ], |
|
125 | - ], |
|
126 | - [ |
|
127 | - 'name' => 'description', |
|
128 | - 'type' => 'Laminas\Form\Element\Textarea', |
|
129 | - 'options' => [ |
|
130 | - 'label' => 'Description', |
|
131 | - ], |
|
132 | - 'attributes' => [ |
|
133 | - 'title' => 'please enter a description', |
|
134 | - ], |
|
135 | - ], |
|
111 | + 'name' => 'country', |
|
112 | + 'options' => [ |
|
113 | + 'label' => 'Country'], |
|
114 | + 'attributes' => [ |
|
115 | + 'title' => /*@translate */ 'please select the country' |
|
116 | + ], |
|
117 | + ], |
|
118 | + [ |
|
119 | + 'name' => 'city', |
|
120 | + 'options' => [ |
|
121 | + 'label' => 'City'], |
|
122 | + 'attributes' => [ |
|
123 | + 'title' => 'please enter the name of the city' |
|
124 | + ], |
|
125 | + ], |
|
126 | + [ |
|
127 | + 'name' => 'description', |
|
128 | + 'type' => 'Laminas\Form\Element\Textarea', |
|
129 | + 'options' => [ |
|
130 | + 'label' => 'Description', |
|
131 | + ], |
|
132 | + 'attributes' => [ |
|
133 | + 'title' => 'please enter a description', |
|
134 | + ], |
|
135 | + ], |
|
136 | 136 | ]; |
137 | 137 | |
138 | 138 | $addArgValidator = function ($arg) use ($add) { |
@@ -76,37 +76,37 @@ |
||
76 | 76 | ] |
77 | 77 | ], |
78 | 78 | [ |
79 | - 'type' => 'Core/Datepicker', |
|
80 | - 'name' => 'endDate', |
|
81 | - 'options' => [ |
|
82 | - 'label' => 'End date' |
|
83 | - ], |
|
79 | + 'type' => 'Core/Datepicker', |
|
80 | + 'name' => 'endDate', |
|
81 | + 'options' => [ |
|
82 | + 'label' => 'End date' |
|
83 | + ], |
|
84 | 84 | ], |
85 | - [ |
|
86 | - 'type' => 'checkbox', |
|
87 | - 'name' => 'currentIndicator', |
|
88 | - 'options' => [ |
|
89 | - 'label' => 'ongoing' |
|
90 | - ] |
|
91 | - ], |
|
92 | - [ |
|
93 | - 'name' => 'organizationName', |
|
94 | - 'options' => [ |
|
95 | - 'label' => 'Company Name'], |
|
96 | - 'attributes' => [ |
|
97 | - 'title' => 'please enter the name of the company' |
|
98 | - ], |
|
99 | - ], |
|
100 | - [ |
|
101 | - 'name' => 'description', |
|
102 | - 'type' => 'Laminas\Form\Element\Textarea', |
|
103 | - 'options' => [ |
|
104 | - 'label' => 'Description', |
|
105 | - ], |
|
106 | - 'attributes' => [ |
|
107 | - 'title' => 'please describe your position', |
|
108 | - ], |
|
109 | - ], |
|
85 | + [ |
|
86 | + 'type' => 'checkbox', |
|
87 | + 'name' => 'currentIndicator', |
|
88 | + 'options' => [ |
|
89 | + 'label' => 'ongoing' |
|
90 | + ] |
|
91 | + ], |
|
92 | + [ |
|
93 | + 'name' => 'organizationName', |
|
94 | + 'options' => [ |
|
95 | + 'label' => 'Company Name'], |
|
96 | + 'attributes' => [ |
|
97 | + 'title' => 'please enter the name of the company' |
|
98 | + ], |
|
99 | + ], |
|
100 | + [ |
|
101 | + 'name' => 'description', |
|
102 | + 'type' => 'Laminas\Form\Element\Textarea', |
|
103 | + 'options' => [ |
|
104 | + 'label' => 'Description', |
|
105 | + ], |
|
106 | + 'attributes' => [ |
|
107 | + 'title' => 'please describe your position', |
|
108 | + ], |
|
109 | + ], |
|
110 | 110 | ]; |
111 | 111 | |
112 | 112 | $addArgValidator = function ($arg) use ($add) { |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $modules = array_merge( |
3 | - include_once __DIR__.'/../../../config/common.modules.php', |
|
4 | - [ |
|
5 | - 'Install', |
|
6 | - 'Core', |
|
7 | - 'Auth', |
|
8 | - 'Jobs', |
|
9 | - 'Geo', |
|
10 | - 'Cv', |
|
11 | - 'Settings', |
|
12 | - 'Applications', |
|
13 | - 'Organizations', |
|
14 | - ] |
|
3 | + include_once __DIR__.'/../../../config/common.modules.php', |
|
4 | + [ |
|
5 | + 'Install', |
|
6 | + 'Core', |
|
7 | + 'Auth', |
|
8 | + 'Jobs', |
|
9 | + 'Geo', |
|
10 | + 'Cv', |
|
11 | + 'Settings', |
|
12 | + 'Applications', |
|
13 | + 'Organizations', |
|
14 | + ] |
|
15 | 15 | ); |
16 | 16 | return array( |
17 | 17 | // This should be an array of module namespaces used in the application. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | // modules are loaded. These effectively overide configuration |
37 | 37 | // provided by modules themselves. Paths may use GLOB_BRACE notation. |
38 | 38 | 'config_glob_paths' => array( |
39 | - __DIR__ . '/../../../test/config/{,*.}{global,local}.php', |
|
39 | + __DIR__ . '/../../../test/config/{,*.}{global,local}.php', |
|
40 | 40 | ), |
41 | 41 | |
42 | 42 | // Whether or not to enable a configuration cache. |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | // ), |
75 | 75 | // ) |
76 | 76 | |
77 | - // Initial configuration with which to seed the ServiceManager. |
|
78 | - // Should be compatible with Laminas\ServiceManager\Config. |
|
79 | - // 'service_manager' => array(), |
|
77 | + // Initial configuration with which to seed the ServiceManager. |
|
78 | + // Should be compatible with Laminas\ServiceManager\Config. |
|
79 | + // 'service_manager' => array(), |
|
80 | 80 | ); |
81 | 81 | \ No newline at end of file |