@@ -79,7 +79,7 @@ |
||
79 | 79 | $rep = $this->getMockBuilder('\Organizations\Repository\Organization')->disableOriginalConstructor()->getMock(); |
80 | 80 | |
81 | 81 | $dm->expects($this->once())->method('getRepository')->with('Organizations\Entity\Organization') |
82 | - ->willReturn($rep); |
|
82 | + ->willReturn($rep); |
|
83 | 83 | |
84 | 84 | $doc->setId('test1234'); |
85 | 85 |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | public function testOrganizationReferenceImplementsInterfaces() |
42 | 42 | { |
43 | 43 | $target = $this->getMockBuilder('\Organizations\Entity\OrganizationReference') |
44 | - ->disableOriginalConstructor() |
|
45 | - ->getMock(); |
|
44 | + ->disableOriginalConstructor() |
|
45 | + ->getMock(); |
|
46 | 46 | |
47 | 47 | $this->assertInstanceOf('\Organizations\Entity\OrganizationReferenceInterface', $target); |
48 | 48 | $this->assertInstanceOf('\Organizations\Entity\OrganizationInterface', $target); |
@@ -59,21 +59,21 @@ discard block |
||
59 | 59 | $organization = new Organization(); |
60 | 60 | |
61 | 61 | $repository = $this->getMockBuilder('\Organizations\Repository\Organization') |
62 | - ->disableOriginalConstructor()->getMock(); |
|
62 | + ->disableOriginalConstructor()->getMock(); |
|
63 | 63 | |
64 | 64 | $repository->expects($this->once()) |
65 | - ->method('findByUser') |
|
66 | - ->with('1234') |
|
67 | - ->willReturn('owner' == $type ? $organization : null); |
|
65 | + ->method('findByUser') |
|
66 | + ->with('1234') |
|
67 | + ->willReturn('owner' == $type ? $organization : null); |
|
68 | 68 | |
69 | 69 | if ('owner' == $type) { |
70 | 70 | $repository->expects($this->never()) |
71 | - ->method('findByEmployee'); |
|
71 | + ->method('findByEmployee'); |
|
72 | 72 | } else { |
73 | 73 | $repository->expects($this->once()) |
74 | - ->method('findByEmployee') |
|
75 | - ->with('1234') |
|
76 | - ->willReturn('employee' == $type ? $organization : null); |
|
74 | + ->method('findByEmployee') |
|
75 | + ->with('1234') |
|
76 | + ->willReturn('employee' == $type ? $organization : null); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | $target = new OrganizationReference('1234', $repository); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | [['setEmployees', 'getEmployees'], [[$emps], []], ['__self__', $emps]], |
197 | 197 | ['getEmployee', ['4321'], null], |
198 | 198 | [['setUser', 'getUser', 'getPermissionsUserIds'], |
199 | - [[$user], [], []], |
|
200 | - ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]] |
|
199 | + [[$user], [], []], |
|
200 | + ['__self__', $user, [PermissionsInterface::PERMISSION_ALL => [$user->getId()]]] |
|
201 | 201 | ], |
202 | 202 | ['getJobs', [], null], |
203 | 203 | [['setPermissions', 'getPermissions'], [[$perms], []], ['__self__', $perms]], |
@@ -94,7 +94,7 @@ |
||
94 | 94 | public function testSetSubjectDoesNotTranslate() |
95 | 95 | { |
96 | 96 | $translator = $this->getMockBuilder(Translator::class)->disableOriginalConstructor() |
97 | - ->setMethods(['translate'])->getMock(); |
|
97 | + ->setMethods(['translate'])->getMock(); |
|
98 | 98 | $translator->expects($this->never())->method('translate'); |
99 | 99 | |
100 | 100 | $this->target->setTranslator($translator); |
@@ -124,18 +124,18 @@ |
||
124 | 124 | private function getPreparedTarget() |
125 | 125 | { |
126 | 126 | return new FieldsetCustomizationOptions([ |
127 | - 'fields' => [ |
|
128 | - 'field' => [ |
|
129 | - 'attributes' => ['attr' => 'attrVal'], |
|
130 | - 'options' => ['opt1' => 'optVal' ], |
|
131 | - 'label' => 'label', |
|
132 | - 'required' => true, |
|
133 | - 'type' => 'ElementType', |
|
134 | - 'priority' => 12, |
|
135 | - 'flags' => ['priority' => 10], |
|
136 | - 'input_filter' => ['test' => 'works'], |
|
137 | - ], |
|
138 | - ], |
|
127 | + 'fields' => [ |
|
128 | + 'field' => [ |
|
129 | + 'attributes' => ['attr' => 'attrVal'], |
|
130 | + 'options' => ['opt1' => 'optVal' ], |
|
131 | + 'label' => 'label', |
|
132 | + 'required' => true, |
|
133 | + 'type' => 'ElementType', |
|
134 | + 'priority' => 12, |
|
135 | + 'flags' => ['priority' => 10], |
|
136 | + 'input_filter' => ['test' => 'works'], |
|
137 | + ], |
|
138 | + ], |
|
139 | 139 | ]); |
140 | 140 | } |
141 | 141 |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | { |
50 | 50 | $expect = ['extract' => 'works']; |
51 | 51 | $object = $this->getMockBuilder(MetaDataProviderInterface::class) |
52 | - ->setMethods(['getMetaData']) |
|
53 | - ->getMockForAbstractClass(); |
|
52 | + ->setMethods(['getMetaData']) |
|
53 | + ->getMockForAbstractClass(); |
|
54 | 54 | |
55 | 55 | $object->expects($this->once())->method('getMetaData')->willReturn($expect); |
56 | 56 | |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | public function testHydrationOfMetaDataProvider() |
70 | 70 | { |
71 | 71 | $object = $this->getMockBuilder(MetaDataProviderInterface::class) |
72 | - ->setMethods(['setMetaData']) |
|
73 | - ->getMockForAbstractClass(); |
|
72 | + ->setMethods(['setMetaData']) |
|
73 | + ->getMockForAbstractClass(); |
|
74 | 74 | |
75 | 75 | $object->expects($this->once())->method('setMetaData')->with('key', 'value'); |
76 | 76 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $labeldContainer->setLabel('testLabel'); |
43 | 43 | $topContainer = new Container(); |
44 | 44 | $topContainer->setForm('child', [ '__instance__' => $object ]) |
45 | - ->setLabel('top'); |
|
45 | + ->setLabel('top'); |
|
46 | 46 | |
47 | 47 | return [ |
48 | 48 | /*[ 'Headscripts', [ |
@@ -110,8 +110,8 @@ |
||
110 | 110 | $results->push($result1); |
111 | 111 | $this->ajaxEventManagerMock->expects($this->once())->method('getEvent')->with('test', $this->target)->willReturn(new AjaxEvent()); |
112 | 112 | $this->ajaxEventManagerMock->expects($this->once())->method('triggerEventUntil') |
113 | - ->with($this->isInstanceOf('\Closure'), $this->isInstanceOf(AjaxEvent::class)) |
|
114 | - ->willReturn($results); |
|
113 | + ->with($this->isInstanceOf('\Closure'), $this->isInstanceOf(AjaxEvent::class)) |
|
114 | + ->willReturn($results); |
|
115 | 115 | |
116 | 116 | $response = $this->target->onRoute($event); |
117 | 117 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | { |
36 | 36 | if (!property_exists($this, 'traits') || !property_exists($this, 'target')) { |
37 | 37 | throw new \PHPUnit_Framework_Exception(self::class . ': ' . static::class |
38 | - . ' must define the properties $target and $traits.'); |
|
38 | + . ' must define the properties $target and $traits.'); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $this->assertUsesTraits($this->traits, $this->target); |
@@ -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()); |