@@ -103,8 +103,8 @@ |
||
103 | 103 | ->getMockBuilder('\Core\Form\Form') |
104 | 104 | ->disableOriginalConstructor() |
105 | 105 | ->setMethods(['setIsDisableCapable', 'setIsDisableElementsCapable', |
106 | - 'setIsDescriptionsEnabled', 'setDescription', 'setParam', |
|
107 | - 'setLabel', 'get']) |
|
106 | + 'setIsDescriptionsEnabled', 'setDescription', 'setParam', |
|
107 | + 'setLabel', 'get']) |
|
108 | 108 | ->getMock(); |
109 | 109 | |
110 | 110 | $form->expects($this->once())->method('setIsDisableCapable')->with(false)->will($this->returnSelf()); |
@@ -65,41 +65,41 @@ |
||
65 | 65 | ['cv-list-filter'] |
66 | 66 | ); |
67 | 67 | $add1 = [ |
68 | - 'name' => 'l', |
|
69 | - 'type' => 'LocationSelect', |
|
70 | - 'options' => [ |
|
71 | - 'label' => 'Location', |
|
72 | - 'span' => 3, |
|
73 | - 'location_entity' => \Cv\Entity\Location::class, |
|
74 | - ], |
|
75 | - 'attributes' => [ |
|
76 | - 'data-width' => '100%', |
|
77 | - ], |
|
78 | - ]; |
|
68 | + 'name' => 'l', |
|
69 | + 'type' => 'LocationSelect', |
|
70 | + 'options' => [ |
|
71 | + 'label' => 'Location', |
|
72 | + 'span' => 3, |
|
73 | + 'location_entity' => \Cv\Entity\Location::class, |
|
74 | + ], |
|
75 | + 'attributes' => [ |
|
76 | + 'data-width' => '100%', |
|
77 | + ], |
|
78 | + ]; |
|
79 | 79 | |
80 | 80 | $add2 = [ |
81 | - 'name' => 'd', |
|
82 | - 'type' => 'Core\Form\Element\Select', |
|
83 | - 'options' => [ |
|
84 | - 'label' => /*@translate*/ 'Distance', |
|
85 | - 'value_options' => [ |
|
86 | - '5' => '5 km', |
|
87 | - '10' => '10 km', |
|
88 | - '20' => '20 km', |
|
89 | - '50' => '50 km', |
|
90 | - '100' => '100 km' |
|
91 | - ], |
|
92 | - 'span' => 4, |
|
81 | + 'name' => 'd', |
|
82 | + 'type' => 'Core\Form\Element\Select', |
|
83 | + 'options' => [ |
|
84 | + 'label' => /*@translate*/ 'Distance', |
|
85 | + 'value_options' => [ |
|
86 | + '5' => '5 km', |
|
87 | + '10' => '10 km', |
|
88 | + '20' => '20 km', |
|
89 | + '50' => '50 km', |
|
90 | + '100' => '100 km' |
|
91 | + ], |
|
92 | + 'span' => 4, |
|
93 | 93 | |
94 | - ], |
|
95 | - 'attributes' => [ |
|
96 | - 'value' => '10', |
|
97 | - 'data-searchbox' => -1, |
|
98 | - 'data-allowclear' => 'false', |
|
99 | - 'data-placeholder' => 'Distance', |
|
100 | - 'data-width' => '100%', |
|
101 | - ] |
|
102 | - ]; |
|
94 | + ], |
|
95 | + 'attributes' => [ |
|
96 | + 'value' => '10', |
|
97 | + 'data-searchbox' => -1, |
|
98 | + 'data-allowclear' => 'false', |
|
99 | + 'data-placeholder' => 'Distance', |
|
100 | + 'data-width' => '100%', |
|
101 | + ] |
|
102 | + ]; |
|
103 | 103 | |
104 | 104 | $this->target->expects($this->exactly(2))->method('add') |
105 | 105 | ->withConsecutive( |
@@ -77,76 +77,76 @@ |
||
77 | 77 | public function testInitializesItself() |
78 | 78 | { |
79 | 79 | $add = [ |
80 | - [ |
|
81 | - 'name' => 'typeOfApplication', |
|
82 | - 'type' => 'select', |
|
83 | - 'options' => [ |
|
84 | - 'value_options' => $this->attributes['typeOfApplicationOptions'], |
|
85 | - 'label' => 'desired type of work', |
|
86 | - 'description' => 'Do you want to work permanently or temporary?', |
|
87 | - ], |
|
88 | - 'attributes' => [ |
|
89 | - 'title' => 'please describe your position', |
|
90 | - 'description' => 'what kind of ', |
|
91 | - 'data-placeholder' => 'please select', |
|
92 | - 'data-allowclear' => 'false', |
|
93 | - 'data-searchbox' => -1, |
|
94 | - 'multiple' => true, |
|
95 | - 'data-width' => '100%', |
|
96 | - ], |
|
97 | - ], |
|
80 | + [ |
|
81 | + 'name' => 'typeOfApplication', |
|
82 | + 'type' => 'select', |
|
83 | + 'options' => [ |
|
84 | + 'value_options' => $this->attributes['typeOfApplicationOptions'], |
|
85 | + 'label' => 'desired type of work', |
|
86 | + 'description' => 'Do you want to work permanently or temporary?', |
|
87 | + ], |
|
88 | + 'attributes' => [ |
|
89 | + 'title' => 'please describe your position', |
|
90 | + 'description' => 'what kind of ', |
|
91 | + 'data-placeholder' => 'please select', |
|
92 | + 'data-allowclear' => 'false', |
|
93 | + 'data-searchbox' => -1, |
|
94 | + 'multiple' => true, |
|
95 | + 'data-width' => '100%', |
|
96 | + ], |
|
97 | + ], |
|
98 | 98 | |
99 | - [ |
|
100 | - 'name' => 'desiredJob', |
|
101 | - 'type' => 'Text', |
|
102 | - 'options' => [ |
|
103 | - 'label' => 'desired job position', |
|
104 | - 'description' => 'Enter the title of your desired job. Eg. "Software Developer" or "Customer Service Representative"', |
|
105 | - ], |
|
106 | - 'attributes' => [ |
|
107 | - 'title' => 'please describe your position', |
|
108 | - ], |
|
109 | - ], |
|
110 | - [ |
|
111 | - 'name' => 'desiredLocations', |
|
112 | - 'type' => 'LocationSelect', |
|
113 | - 'options' => [ |
|
114 | - 'label' => 'desired job location', |
|
115 | - 'description' => 'Where do you want to work?', |
|
116 | - 'location_entity' => new Location(), |
|
117 | - ], |
|
118 | - 'attributes' => [ |
|
119 | - 'title' => 'please describe your position', |
|
120 | - 'multiple' => true, |
|
121 | - 'data-width' => '100%', |
|
122 | - ], |
|
123 | - ], |
|
124 | - [ |
|
125 | - 'name' => 'willingnessToTravel', |
|
126 | - 'type' => 'Select', |
|
127 | - 'options' => [ |
|
128 | - 'value_options' => $this->attributes['willingnessToTravelOptions'], |
|
129 | - 'label' => 'Willingness to travel', |
|
130 | - 'description' => 'Enter your willingness to travel.', |
|
131 | - ], |
|
132 | - 'attributes' => [ |
|
133 | - 'data-placeholder' => 'please select', |
|
134 | - 'data-allowclear' => 'false', |
|
135 | - 'data-searchbox' => -1, |
|
136 | - 'data-width' => '100%' |
|
137 | - ], |
|
138 | - ], |
|
139 | - [ |
|
140 | - 'name' => 'expectedSalary', |
|
141 | - 'type' => 'Text', |
|
142 | - 'options' => [ |
|
143 | - 'label' => 'expected Salary', |
|
144 | - 'description' => 'What is your expected Salary?', |
|
145 | - ], |
|
146 | - 'attributes' => [ |
|
147 | - 'title' => 'please describe your position', |
|
148 | - ], |
|
149 | - ], |
|
99 | + [ |
|
100 | + 'name' => 'desiredJob', |
|
101 | + 'type' => 'Text', |
|
102 | + 'options' => [ |
|
103 | + 'label' => 'desired job position', |
|
104 | + 'description' => 'Enter the title of your desired job. Eg. "Software Developer" or "Customer Service Representative"', |
|
105 | + ], |
|
106 | + 'attributes' => [ |
|
107 | + 'title' => 'please describe your position', |
|
108 | + ], |
|
109 | + ], |
|
110 | + [ |
|
111 | + 'name' => 'desiredLocations', |
|
112 | + 'type' => 'LocationSelect', |
|
113 | + 'options' => [ |
|
114 | + 'label' => 'desired job location', |
|
115 | + 'description' => 'Where do you want to work?', |
|
116 | + 'location_entity' => new Location(), |
|
117 | + ], |
|
118 | + 'attributes' => [ |
|
119 | + 'title' => 'please describe your position', |
|
120 | + 'multiple' => true, |
|
121 | + 'data-width' => '100%', |
|
122 | + ], |
|
123 | + ], |
|
124 | + [ |
|
125 | + 'name' => 'willingnessToTravel', |
|
126 | + 'type' => 'Select', |
|
127 | + 'options' => [ |
|
128 | + 'value_options' => $this->attributes['willingnessToTravelOptions'], |
|
129 | + 'label' => 'Willingness to travel', |
|
130 | + 'description' => 'Enter your willingness to travel.', |
|
131 | + ], |
|
132 | + 'attributes' => [ |
|
133 | + 'data-placeholder' => 'please select', |
|
134 | + 'data-allowclear' => 'false', |
|
135 | + 'data-searchbox' => -1, |
|
136 | + 'data-width' => '100%' |
|
137 | + ], |
|
138 | + ], |
|
139 | + [ |
|
140 | + 'name' => 'expectedSalary', |
|
141 | + 'type' => 'Text', |
|
142 | + 'options' => [ |
|
143 | + 'label' => 'expected Salary', |
|
144 | + 'description' => 'What is your expected Salary?', |
|
145 | + ], |
|
146 | + 'attributes' => [ |
|
147 | + 'title' => 'please describe your position', |
|
148 | + ], |
|
149 | + ], |
|
150 | 150 | ]; |
151 | 151 | |
152 | 152 | $callCount = count($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. |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | // modules are loaded. These effectively overide configuration |
33 | 33 | // provided by modules themselves. Paths may use GLOB_BRACE notation. |
34 | 34 | 'config_glob_paths' => array( |
35 | - __DIR__ . '/../../../test/config/{,*.}{global,local}.php', |
|
35 | + __DIR__ . '/../../../test/config/{,*.}{global,local}.php', |
|
36 | 36 | ), |
37 | 37 | |
38 | 38 | // Whether or not to enable a configuration cache. |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | // ), |
71 | 71 | // ) |
72 | 72 | |
73 | - // Initial configuration with which to seed the ServiceManager. |
|
74 | - // Should be compatible with Zend\ServiceManager\Config. |
|
75 | - // 'service_manager' => array(), |
|
73 | + // Initial configuration with which to seed the ServiceManager. |
|
74 | + // Should be compatible with Zend\ServiceManager\Config. |
|
75 | + // 'service_manager' => array(), |
|
76 | 76 | ); |
77 | 77 | \ No newline at end of file |
@@ -46,8 +46,8 @@ |
||
46 | 46 | { |
47 | 47 | $events = $this->prophesize(EventManagerInterface::class); |
48 | 48 | $events->attach(AbstractWorkerEvent::EVENT_PROCESS_IDLE, [$this->target, 'onIdle'], 1) |
49 | - ->willReturn('handle') |
|
50 | - ->shouldBeCalled(); |
|
49 | + ->willReturn('handle') |
|
50 | + ->shouldBeCalled(); |
|
51 | 51 | |
52 | 52 | $this->target->attach($events->reveal()); |
53 | 53 |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $queueName = 'test'; |
113 | 113 | $queue = $this->getMockBuilder(MongoQueue::class)->disableOriginalConstructor() |
114 | - ->setMethods(['listing'])->getMock(); |
|
114 | + ->setMethods(['listing'])->getMock(); |
|
115 | 115 | $this->queueManager->expects($this->once())->method('get')->with($queueName)->willReturn($queue); |
116 | 116 | $params = $this->setupParamsMock([ |
117 | 117 | ['queue', null, $queueName], |
@@ -135,13 +135,13 @@ discard block |
||
135 | 135 | $date = new \DateTime(); |
136 | 136 | $date->setTimezone(new \DateTimeZone('UTC')); |
137 | 137 | $jobs = [ |
138 | - [ |
|
139 | - 'job' => $job, |
|
140 | - 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | - 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | - 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | - 'tried' => 10, |
|
144 | - ], |
|
138 | + [ |
|
139 | + 'job' => $job, |
|
140 | + 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | + 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | + 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | + 'tried' => 10, |
|
144 | + ], |
|
145 | 145 | ]; |
146 | 146 | |
147 | 147 | $queue->expects($this->once())->method('listing')->with(['limit' => 10, 'status' => 1])->willReturn($jobs); |
@@ -76,25 +76,25 @@ |
||
76 | 76 | 'log' => array( |
77 | 77 | 'Core/Log' => array( |
78 | 78 | 'writers' => array( |
79 | - array( |
|
80 | - 'name' => 'stream', |
|
79 | + array( |
|
80 | + 'name' => 'stream', |
|
81 | 81 | 'priority' => 1000, |
82 | 82 | 'options' => array( |
83 | - 'stream' => getcwd().'/var/log/yawik.log', |
|
83 | + 'stream' => getcwd().'/var/log/yawik.log', |
|
84 | + ), |
|
84 | 85 | ), |
85 | - ), |
|
86 | 86 | ), |
87 | 87 | ), |
88 | 88 | 'Log/Core/Mail' => array( |
89 | 89 | 'writers' => array( |
90 | - array( |
|
91 | - 'name' => 'stream', |
|
90 | + array( |
|
91 | + 'name' => 'stream', |
|
92 | 92 | 'priority' => 1000, |
93 | 93 | 'options' => array( |
94 | - 'stream' => getcwd().'/var/log/mails.log', |
|
94 | + 'stream' => getcwd().'/var/log/mails.log', |
|
95 | 95 | ), |
96 | 96 | |
97 | - ), |
|
97 | + ), |
|
98 | 98 | ), |
99 | 99 | ), |
100 | 100 | 'Log/Core/Queue' => array( |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | $professions, |
97 | 97 | $industries, |
98 | 98 | $types |
99 | - )); |
|
99 | + )); |
|
100 | 100 | } else { |
101 | 101 | $repository->expects($this->exactly(3))->method('findOneBy') |
102 | - ->withConsecutive( |
|
103 | - [['value' => 'professions']], |
|
104 | - [['value' => 'employmentTypes']], |
|
105 | - [['value' => 'industries']] |
|
102 | + ->withConsecutive( |
|
103 | + [['value' => 'professions']], |
|
104 | + [['value' => 'employmentTypes']], |
|
105 | + [['value' => 'industries']] |
|
106 | 106 | )->willReturn(null); |
107 | 107 | } |
108 | 108 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ->with($this->isInstanceOf(Category::class)); |
118 | 118 | } elseif ($postRequest) { |
119 | 119 | $repositories->expects($this->exactly(1))->method('store') |
120 | - ->with($this->isInstanceOf(Category::class)); |
|
120 | + ->with($this->isInstanceOf(Category::class)); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 |
@@ -59,8 +59,8 @@ |
||
59 | 59 | ; |
60 | 60 | |
61 | 61 | $auth->expects($this->once()) |
62 | - ->method('getUser') |
|
63 | - ->will($this->returnValue($user)) |
|
62 | + ->method('getUser') |
|
63 | + ->will($this->returnValue($user)) |
|
64 | 64 | ; |
65 | 65 | |
66 | 66 | $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock(); |