@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
3 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
4 | 4 | |
5 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
5 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
@@ -44,6 +44,6 @@ |
||
44 | 44 | ->willReturn($repositories); |
45 | 45 | |
46 | 46 | $listListenerFactory = new ListListenerFactory(); |
47 | - $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator,'irrelevant')); |
|
47 | + $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator, 'irrelevant')); |
|
48 | 48 | } |
49 | 49 | } |
@@ -45,13 +45,13 @@ |
||
45 | 45 | ->getMock(); |
46 | 46 | |
47 | 47 | $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService') |
48 | - ->disableOriginalConstructor() |
|
49 | - ->getMock(); |
|
48 | + ->disableOriginalConstructor() |
|
49 | + ->getMock(); |
|
50 | 50 | |
51 | 51 | $repositoriesMock->expects($this->once()) |
52 | - ->method('get') |
|
53 | - ->with('Jobs/Job') |
|
54 | - ->willReturn($jobRepositoryMock); |
|
52 | + ->method('get') |
|
53 | + ->with('Jobs/Job') |
|
54 | + ->willReturn($jobRepositoryMock); |
|
55 | 55 | |
56 | 56 | $apiJobDehydratorMock = $this->getMockBuilder('Jobs\Model\ApiJobDehydrator') |
57 | 57 | ->disableOriginalConstructor() |
@@ -46,8 +46,8 @@ |
||
46 | 46 | ->getMock(); |
47 | 47 | |
48 | 48 | $repositoriesMock = $this->getMockBuilder('Core\Repository\RepositoryService') |
49 | - ->disableOriginalConstructor() |
|
50 | - ->getMock(); |
|
49 | + ->disableOriginalConstructor() |
|
50 | + ->getMock(); |
|
51 | 51 | |
52 | 52 | $repositoriesMock->expects($this->once()) |
53 | 53 | ->method('get') |
@@ -41,15 +41,15 @@ |
||
41 | 41 | $provider=new ProviderOptions(); |
42 | 42 | |
43 | 43 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
44 | - ->disableOriginalConstructor() |
|
45 | - ->getMock(); |
|
44 | + ->disableOriginalConstructor() |
|
45 | + ->getMock(); |
|
46 | 46 | |
47 | 47 | |
48 | 48 | $serviceManagerMock |
49 | - ->expects($this->once()) |
|
50 | - ->method('get') |
|
51 | - ->with('Jobs/Options/Provider') |
|
52 | - ->willReturn($provider) |
|
49 | + ->expects($this->once()) |
|
50 | + ->method('get') |
|
51 | + ->with('Jobs/Options/Provider') |
|
52 | + ->willReturn($provider) |
|
53 | 53 | ; |
54 | 54 | |
55 | 55 | $target = new ChannelPricesFactory(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function testInvokation() |
40 | 40 | { |
41 | - $provider=new ProviderOptions(); |
|
41 | + $provider = new ProviderOptions(); |
|
42 | 42 | |
43 | 43 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
44 | 44 | ->disableOriginalConstructor() |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | $target = new ChannelPricesFactory(); |
56 | 56 | |
57 | - $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
|
57 | + $service = $target->__invoke($serviceManagerMock, 'irrelevant'); |
|
58 | 58 | |
59 | 59 | $this->assertInstanceOf('\Jobs\Filter\ChannelPrices', $service); |
60 | 60 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $sm = $this->getServiceManagerMock(); |
81 | 81 | $sm->setService('ApplicationConfig', $appConfig); |
82 | 82 | |
83 | - $builder = $this->target->__invoke($sm,'irrelevant'); |
|
83 | + $builder = $this->target->__invoke($sm, 'irrelevant'); |
|
84 | 84 | |
85 | 85 | $this->assertAttributeSame($expectModulePath, 'moduleConfigPath', $builder); |
86 | 86 | $this->assertAttributeSame($expectGlobalPaths, 'globalConfigPaths', $builder); |
@@ -82,16 +82,16 @@ |
||
82 | 82 | 'number' => '123', |
83 | 83 | ]); |
84 | 84 | $repository = $this |
85 | - ->getMockBuilder(Organization::class) |
|
86 | - ->disableOriginalConstructor() |
|
85 | + ->getMockBuilder(Organization::class) |
|
86 | + ->disableOriginalConstructor() |
|
87 | 87 | ->setMethods(['find']) |
88 | 88 | ->getMock() |
89 | 89 | ; |
90 | 90 | $repository |
91 | - ->expects($this->once()) |
|
92 | - ->method('find') |
|
93 | - ->with('orgId') |
|
94 | - ->willReturn($org) |
|
91 | + ->expects($this->once()) |
|
92 | + ->method('find') |
|
93 | + ->with('orgId') |
|
94 | + ->willReturn($org) |
|
95 | 95 | ; |
96 | 96 | $repositories = $this->createPluginManagerMock(['Organizations' => $repository]); |
97 | 97 | $services['repositories'] = $repositories; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | |
49 | 49 | public function testCreateService() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $container = $this->getServiceManagerMock(); |
52 | 52 | $formElements = $this->getPluginManagerMock($container); |
53 | 53 | |
54 | - $this->target->__invoke($container,OrganizationSelect::class); |
|
54 | + $this->target->__invoke($container, OrganizationSelect::class); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | public function testServiceCreationWithoutPreSelectedOrganization() |
@@ -50,10 +50,10 @@ |
||
50 | 50 | { |
51 | 51 | $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock(); |
52 | 52 | $select->expects($this->once()) |
53 | - ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
53 | + ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
54 | 54 | |
55 | 55 | $select->expects($this->once()) |
56 | - ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
56 | + ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
57 | 57 | |
58 | 58 | $factory = $this->getMockBuilder('\Zend\ServiceManager\FactoryInterface') |
59 | 59 | ->setMethods(array('__invoke')) |
@@ -52,9 +52,9 @@ |
||
52 | 52 | |
53 | 53 | public function testTrimAndStripTagsFromJobTitle() |
54 | 54 | { |
55 | - $expected="title (m/w)"; |
|
55 | + $expected = "title (m/w)"; |
|
56 | 56 | $output = $this->inputFilter->getInputs(); |
57 | 57 | $filter = $output['title']->getFilterChain(); |
58 | - $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
|
58 | + $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
|
59 | 59 | } |
60 | 60 | } |