Completed
Pull Request — master (#9)
by Quang
04:07
created
tests/Http/GraphQLControllerTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,17 +93,17 @@
 block discarded – undo
93 93
     {
94 94
         // Mock the processor
95 95
         $processor = $this->getMockBuilder(Processor::class)
96
-                          ->disableOriginalConstructor()
97
-                          ->setMethods(['getResponseData', 'processPayload'])
98
-                          ->getMock();
96
+                            ->disableOriginalConstructor()
97
+                            ->setMethods(['getResponseData', 'processPayload'])
98
+                            ->getMock();
99 99
 
100 100
         $processor->expects($this->once())
101
-                  ->method('processPayload')
102
-                  ->willReturn($processor);
101
+                    ->method('processPayload')
102
+                    ->willReturn($processor);
103 103
 
104 104
         $processor->expects($this->once())
105
-                  ->method('getResponseData')
106
-                  ->willReturn($responseData);
105
+                    ->method('getResponseData')
106
+                    ->willReturn($responseData);
107 107
 
108 108
         /** @var \PHPUnit_Framework_MockObject_MockObject|GraphQLService $service */
109 109
         $service = $this->getMockBuilder(GraphQLService::class)
Please login to merge, or discard this patch.
tests/GraphQLServiceTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     {
32 32
         /** @var \PHPUnit_Framework_MockObject_MockObject|CacheRepository $cacheRepository */
33 33
         $this->cache = $this->getMockBuilder(CacheRepository::class)
34
-                             ->setMethods(['get', 'forever'])
35
-                             ->getMockForAbstractClass();
34
+                                ->setMethods(['get', 'forever'])
35
+                                ->getMockForAbstractClass();
36 36
 
37 37
         $this->processor = new Processor(new Schema());
38 38
         $this->service = new GraphQLService($this->processor, $this->cache);
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
     public function testGetProcessor()
43 43
     {
44 44
         $this->cache->expects($this->any())
45
-                     ->method('get')
46
-                     ->with(GraphQLService::PROCESSOR_CACHE_KEY)
47
-                     ->willReturn($this->processor);
45
+                        ->method('get')
46
+                        ->with(GraphQLService::PROCESSOR_CACHE_KEY)
47
+                        ->willReturn($this->processor);
48 48
 
49 49
         $this->assertEquals($this->processor, $this->service->getProcessor());
50 50
     }
Please login to merge, or discard this patch.