Passed
Push — master ( 5e9e4e...a80842 )
by Caen
14:29
created
packages/publications/tests/Feature/SeedPublicationCommandTest.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     public function test_can_seed_publications_using_arguments()
41 41
     {
42 42
         $this->artisan('seed:publications test-publication 1')
43
-             ->expectsOutputToContain('Seeding new publications!')
44
-             ->assertExitCode(0);
43
+                ->expectsOutputToContain('Seeding new publications!')
44
+                ->assertExitCode(0);
45 45
 
46 46
         $this->assertPublicationsCreated();
47 47
     }
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
     public function test_can_seed_multiple_publications()
50 50
     {
51 51
         $this->artisan('seed:publications test-publication 2')
52
-             ->expectsOutputToContain('Seeding new publications!')
53
-             ->expectsOutputToContain('2 publications for Test Publication created!')
54
-             ->assertExitCode(0);
52
+                ->expectsOutputToContain('Seeding new publications!')
53
+                ->expectsOutputToContain('2 publications for Test Publication created!')
54
+                ->assertExitCode(0);
55 55
 
56 56
         $this->assertPublicationsCreated(2);
57 57
     }
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
     public function test_command_asks_to_confirm_before_creating_many_publications()
60 60
     {
61 61
         $this->artisan('seed:publications')
62
-             ->expectsOutputToContain('Seeding new publications!')
63
-             ->expectsQuestion('Which publication type would you like to seed?', 'test-publication')
64
-             ->expectsQuestion('How many publications would you like to generate', 10000)
65
-             ->expectsOutputToContain('Warning: Generating a large number of publications may take a while. Expected time: 10 seconds.')
66
-             ->expectsConfirmation('Are you sure you want to continue?', false)
67
-             ->assertExitCode(130);
62
+                ->expectsOutputToContain('Seeding new publications!')
63
+                ->expectsQuestion('Which publication type would you like to seed?', 'test-publication')
64
+                ->expectsQuestion('How many publications would you like to generate', 10000)
65
+                ->expectsOutputToContain('Warning: Generating a large number of publications may take a while. Expected time: 10 seconds.')
66
+                ->expectsConfirmation('Are you sure you want to continue?', false)
67
+                ->assertExitCode(130);
68 68
 
69 69
         $this->assertPublicationsCreated(0);
70 70
     }
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
     public function test_command_asks_to_confirm_before_creating_many_publications_when_using_arguments()
73 73
     {
74 74
         $this->artisan('seed:publications test-publication 10000')
75
-             ->expectsOutputToContain('Seeding new publications!')
76
-             ->expectsOutputToContain('Warning: Generating a large number of publications may take a while. Expected time: 10 seconds.')
77
-             ->expectsConfirmation('Are you sure you want to continue?', false)
78
-             ->assertExitCode(130);
75
+                ->expectsOutputToContain('Seeding new publications!')
76
+                ->expectsOutputToContain('Warning: Generating a large number of publications may take a while. Expected time: 10 seconds.')
77
+                ->expectsConfirmation('Are you sure you want to continue?', false)
78
+                ->assertExitCode(130);
79 79
 
80 80
         $this->assertPublicationsCreated(0);
81 81
     }
Please login to merge, or discard this patch.
packages/publications/tests/Feature/MakePublicationTypeCommandTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,8 +185,8 @@
 block discarded – undo
185 185
         $this->file('test-publication/foo');
186 186
 
187 187
         $this->artisan('make:publicationType "Test Publication"')
188
-             ->expectsOutput('Error: Storage path [test-publication] already exists')
189
-             ->assertExitCode(1);
188
+                ->expectsOutput('Error: Storage path [test-publication] already exists')
189
+                ->assertExitCode(1);
190 190
     }
191 191
 
192 192
     public function testWithTagFieldInput()
Please login to merge, or discard this patch.
packages/publications/tests/Feature/ValidatePublicationsCommandTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 ');
76 76
 
77 77
         $this->artisan('validate:publications', ['--verbose' => true])
78
-             ->expectsOutputToContain('Validated 1 publication types, 1 publications, 1 fields')
79
-             ->expectsOutput('Found 0 Warnings')
80
-             ->expectsOutput('Found 0 Errors')
81
-             ->assertExitCode(0);
78
+                ->expectsOutputToContain('Validated 1 publication types, 1 publications, 1 fields')
79
+                ->expectsOutput('Found 0 Warnings')
80
+                ->expectsOutput('Found 0 Errors')
81
+                ->assertExitCode(0);
82 82
     }
83 83
 
84 84
     public function testWithInvalidPublication()
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 ');
93 93
 
94 94
         $this->artisan('validate:publications')
95
-             ->expectsOutputToContain('Validated 1 publication types, 1 publications, 1 fields')
96
-             ->expectsOutput('Found 0 Warnings')
97
-             ->expectsOutput('Found 1 Errors')
98
-             ->assertExitCode(1);
95
+                ->expectsOutputToContain('Validated 1 publication types, 1 publications, 1 fields')
96
+                ->expectsOutput('Found 0 Warnings')
97
+                ->expectsOutput('Found 1 Errors')
98
+                ->assertExitCode(1);
99 99
     }
100 100
 
101 101
     public function testWithWarnedPublication()
Please login to merge, or discard this patch.