@@ -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'; |
@@ -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') |
@@ -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')) |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ] |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testInvoke() |
49 | 49 | { |
@@ -31,8 +31,8 @@ |
||
31 | 31 | { |
32 | 32 | $this->testedObj = new JobsPublisherFactory(); |
33 | 33 | $this->mockJobsOptions = $this->getMockBuilder('Jobs\Options\ModuleOptions') |
34 | - ->disableOriginalConstructor() |
|
35 | - ->getMock(); |
|
34 | + ->disableOriginalConstructor() |
|
35 | + ->getMock(); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | '@testCreateService' => ['mock' => ['__invoke']], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testInvokation() |
49 | 49 | { |
@@ -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(); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ FactoryInterface::class ]; |
|
44 | + private $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | |
47 | 47 | public function testServiceCreation() |
@@ -42,7 +42,7 @@ |
||
42 | 42 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
43 | 43 | ]; |
44 | 44 | |
45 | - private $inheritance = [ FactoryInterface::class ]; |
|
45 | + private $inheritance = [FactoryInterface::class]; |
|
46 | 46 | |
47 | 47 | public function testServiceCreation() |
48 | 48 | { |