@@ -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); |
@@ -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(); |
@@ -48,19 +48,19 @@ discard block |
||
48 | 48 | $channelOptions = new ChannelOptions(); |
49 | 49 | |
50 | 50 | $channelOptions->setCategory('testCat') |
51 | - ->setCurrency('€') |
|
52 | - ->setDescription('testDesc') |
|
53 | - ->setExternalkey('testExtKey') |
|
54 | - ->setHeadLine('testHL') |
|
55 | - ->setKey('testKey') |
|
56 | - ->setLabel('testLabel') |
|
57 | - ->setLinkText('testLinkTxt') |
|
58 | - ->setLogo('testLogo') |
|
59 | - ->setParams(array('test' => 'params')) |
|
60 | - ->setPrice('test', 1234) |
|
61 | - ->setPublishDuration(10) |
|
62 | - ->setRoute('testRoute') |
|
63 | - ->setTax(19); |
|
51 | + ->setCurrency('€') |
|
52 | + ->setDescription('testDesc') |
|
53 | + ->setExternalkey('testExtKey') |
|
54 | + ->setHeadLine('testHL') |
|
55 | + ->setKey('testKey') |
|
56 | + ->setLabel('testLabel') |
|
57 | + ->setLinkText('testLinkTxt') |
|
58 | + ->setLogo('testLogo') |
|
59 | + ->setParams(array('test' => 'params')) |
|
60 | + ->setPrice('test', 1234) |
|
61 | + ->setPublishDuration(10) |
|
62 | + ->setRoute('testRoute') |
|
63 | + ->setTax(19); |
|
64 | 64 | |
65 | 65 | $providerOptions->addChannel($channelOptions); |
66 | 66 | |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | ); |
107 | 107 | |
108 | 108 | $services->expects($this->exactly(3)) |
109 | - ->method('get') |
|
110 | - ->will($this->returnValueMap($servicesMap)) |
|
109 | + ->method('get') |
|
110 | + ->will($this->returnValueMap($servicesMap)) |
|
111 | 111 | ; |
112 | 112 | |
113 | 113 | $target = new MultipostingSelectFactory(); |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | |
94 | 94 | |
95 | 95 | /** |
96 | - * @covers \Jobs\Entity\History::setDate |
|
97 | - * @covers \Jobs\Entity\History::getDate |
|
98 | - */ |
|
96 | + * @covers \Jobs\Entity\History::setDate |
|
97 | + * @covers \Jobs\Entity\History::getDate |
|
98 | + */ |
|
99 | 99 | public function testSetGetDate() |
100 | 100 | { |
101 | 101 | $date=new \DateTime("2017-02-28 11:11:11"); |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @covers \Jobs\Entity\History::setMessage |
|
109 | - * @covers \Jobs\Entity\History::getMessage |
|
110 | - */ |
|
108 | + * @covers \Jobs\Entity\History::setMessage |
|
109 | + * @covers \Jobs\Entity\History::getMessage |
|
110 | + */ |
|
111 | 111 | public function testSetGetMessage() |
112 | 112 | { |
113 | 113 | $message="my message"; |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * @covers \Jobs\Entity\History::setStatus |
|
121 | - * @covers \Jobs\Entity\History::getStatus |
|
122 | - */ |
|
120 | + * @covers \Jobs\Entity\History::setStatus |
|
121 | + * @covers \Jobs\Entity\History::getStatus |
|
122 | + */ |
|
123 | 123 | public function testSetGetStatus() |
124 | 124 | { |
125 | 125 | $status=new Status(Status::CREATED); |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | public function testInitialization() |
85 | 85 | { |
86 | 86 | $target = $this->getMockBuilder('\Jobs\Form\AtsModeFieldset') |
87 | - ->disableOriginalConstructor() |
|
88 | - ->setMethods(array('add', 'setName')) |
|
89 | - ->getMock(); |
|
87 | + ->disableOriginalConstructor() |
|
88 | + ->setMethods(array('add', 'setName')) |
|
89 | + ->getMock(); |
|
90 | 90 | |
91 | 91 | $target->expects($this->once())->method('setName')->with('atsMode'); |
92 | 92 | |
@@ -152,12 +152,12 @@ discard block |
||
152 | 152 | ]; |
153 | 153 | |
154 | 154 | $target->expects($this->exactly(5))->method('add') |
155 | - ->withConsecutive( |
|
156 | - array($addSelect), |
|
157 | - array($addUri), |
|
158 | - array($addEmail), |
|
159 | - array($addOneClickApply), |
|
160 | - array($addOneClickApplyProfiles) |
|
155 | + ->withConsecutive( |
|
156 | + array($addSelect), |
|
157 | + array($addUri), |
|
158 | + array($addEmail), |
|
159 | + array($addOneClickApply), |
|
160 | + array($addOneClickApplyProfiles) |
|
161 | 161 | ); |
162 | 162 | |
163 | 163 | $target->init(); |