Completed
Push — master ( cb7970...970861 )
by Colin
12:52 queued 03:09
created
tests/Console/Command/IndexCreateOrUpdateMappingCommandTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function testCreateOrUpdateMappingMustSucceed(): void
18 18
     {
19
-        $this->mock(Filesystem::class, function (MockInterface $mock) {
19
+        $this->mock(Filesystem::class, function(MockInterface $mock) {
20 20
             $mock->shouldReceive('exists')
21 21
                 ->once()
22 22
                 ->andReturn(true);
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
                 ->andReturn('{}');
27 27
         });
28 28
 
29
-        $this->mock(Client::class, function (MockInterface $mock) {
29
+        $this->mock(Client::class, function(MockInterface $mock) {
30 30
             $mock->shouldReceive('indices')
31 31
                 ->times(2)
32 32
                 ->andReturn(
33
-                    $this->mock(IndicesNamespace::class, function (MockInterface $mock) {
33
+                    $this->mock(IndicesNamespace::class, function(MockInterface $mock) {
34 34
                         $mock->shouldReceive('exists')
35 35
                             ->once()
36 36
                             ->andReturn(true);
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function testCreateOrUpdateMappingMustFailBecauseMappingFileDoesntExistsOnFilesystem(): void
56 56
     {
57
-        $this->mock(Filesystem::class, function (MockInterface $mock) {
57
+        $this->mock(Filesystem::class, function(MockInterface $mock) {
58 58
             $mock->shouldReceive('exists')
59 59
                 ->once()
60 60
                 ->andReturn(false);
61 61
         });
62 62
 
63
-        $this->mock(Client::class, function (MockInterface $mock) {
63
+        $this->mock(Client::class, function(MockInterface $mock) {
64 64
             $mock->shouldNotReceive('indices');
65 65
         });
66 66
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function testCreateOrUpdateMappingMustCreateNewIndexIfIndexDoesntExists(): void
78 78
     {
79
-        $this->mock(Filesystem::class, function (MockInterface $mock) {
79
+        $this->mock(Filesystem::class, function(MockInterface $mock) {
80 80
             $mock->shouldReceive('exists')
81 81
                 ->once()
82 82
                 ->andReturn(true);
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
86 86
                 ->andReturn('{}');
87 87
         });
88 88
 
89
-        $this->mock(Client::class, function (MockInterface $mock) {
89
+        $this->mock(Client::class, function(MockInterface $mock) {
90 90
             $mock->shouldReceive('indices')
91 91
                 ->times(2)
92 92
                 ->andReturn(
93
-                    $this->mock(IndicesNamespace::class, function (MockInterface $mock) {
93
+                    $this->mock(IndicesNamespace::class, function(MockInterface $mock) {
94 94
                         $mock->shouldReceive('exists')
95 95
                             ->once()
96 96
                             ->andReturn(false);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     public function testCreateOrUpdateMappingMustFail(): void
116 116
     {
117
-        $this->mock(Filesystem::class, function (MockInterface $mock) {
117
+        $this->mock(Filesystem::class, function(MockInterface $mock) {
118 118
             $mock->shouldReceive('exists')
119 119
                 ->once()
120 120
                 ->andReturn(true);
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
                 ->andReturn('{}');
125 125
         });
126 126
 
127
-        $this->mock(Client::class, function (MockInterface $mock) {
127
+        $this->mock(Client::class, function(MockInterface $mock) {
128 128
             $mock->shouldReceive('indices')
129 129
                 ->times(2)
130 130
                 ->andReturn(
131
-                    $this->mock(IndicesNamespace::class, function (MockInterface $mock) {
131
+                    $this->mock(IndicesNamespace::class, function(MockInterface $mock) {
132 132
                         $mock->shouldReceive('exists')
133 133
                             ->once()
134 134
                             ->andReturn(true);
Please login to merge, or discard this patch.