@@ -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') |
@@ -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 | { |
@@ -61,16 +61,16 @@ discard block |
||
61 | 61 | ->getMock(); |
62 | 62 | |
63 | 63 | $dm = $this->getMockBuilder(DocumentManager::class) |
64 | - ->disableOriginalConstructor() |
|
64 | + ->disableOriginalConstructor() |
|
65 | 65 | ->setMethods(['getEventManager']) |
66 | - ->getMock(); |
|
66 | + ->getMock(); |
|
67 | 67 | |
68 | 68 | $dm->expects($this->once())->method('getEventManager')->willReturn($evm); |
69 | 69 | |
70 | 70 | $persister = $this->getMockBuilder(DocumentPersister::class) |
71 | - ->disableOriginalConstructor() |
|
72 | - ->setMethods(['load', 'loadAll']) |
|
73 | - ->getMock(); |
|
71 | + ->disableOriginalConstructor() |
|
72 | + ->setMethods(['load', 'loadAll']) |
|
73 | + ->getMock(); |
|
74 | 74 | |
75 | 75 | $cursor = $this->getMockBuilder(Cursor::class) |
76 | 76 | ->disableOriginalConstructor() |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | $uow->expects($this->exactly(2))->method('getDocumentPersister')->willReturn($persister); |
91 | 91 | |
92 | 92 | $meta = $this->getMockBuilder(ClassMetadata::class) |
93 | - ->disableOriginalConstructor() |
|
94 | - ->getMock(); |
|
93 | + ->disableOriginalConstructor() |
|
94 | + ->getMock(); |
|
95 | 95 | $meta->name = 'idonotcare'; |
96 | 96 | |
97 | 97 | return [$dm, $uow, $meta]; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | Categories::class, |
46 | 46 | 'args' => false, |
47 | 47 | 'mock' => ['getService', 'store'], |
48 | - '@testInheritance' => [Categories::class, 'as_reflection' => true ], |
|
48 | + '@testInheritance' => [Categories::class, 'as_reflection' => true], |
|
49 | 49 | '@testFindByCreatesDefaultCategory' => [ |
50 | 50 | 'args' => 'setupTargetArgsForFindTests', |
51 | 51 | 'mock' => ['createDefaultCategory' => 2], |