File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,10 +135,6 @@ protected function registerOctaneListener(): void
135135
136136 protected function registerAbout (): void
137137 {
138- if (! class_exists (InstalledVersions::class) || ! class_exists (AboutCommand::class)) {
139- return ;
140- }
141-
142138 // array format: 'Display Text' => 'boolean-config-key name'
143139 $ features = [
144140 'Teams ' => 'teams ' ,
Original file line number Diff line number Diff line change 11<?php
22
3- use Composer \InstalledVersions ;
4- use Illuminate \Foundation \Console \AboutCommand ;
53use Illuminate \Support \Facades \Artisan ;
64use Spatie \Permission \Models \Permission ;
75use Spatie \Permission \Models \Role ;
214212});
215213
216214it ('can respond to about command with default ' , function () {
217- if (! class_exists (InstalledVersions::class) || ! class_exists (AboutCommand::class)) {
218- $ this ->markTestSkipped ();
219- }
220- if (! method_exists (AboutCommand::class, 'flushState ' )) {
221- $ this ->markTestSkipped ();
222- }
223-
224215 app (PermissionRegistrar::class)->initializeCache ();
225216
226217 Artisan::call ('about ' );
231222});
232223
233224it ('can respond to about command with teams ' , function () {
234- if (! class_exists (InstalledVersions::class) || ! class_exists (AboutCommand::class)) {
235- $ this ->markTestSkipped ();
236- }
237- if (! method_exists (AboutCommand::class, 'flushState ' )) {
238- $ this ->markTestSkipped ();
239- }
240-
241225 app (PermissionRegistrar::class)->initializeCache ();
242226
243227 config ()->set ('permission.teams ' , true );
Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ protected function tearDown(): void
7474 {
7575 parent ::tearDown ();
7676
77- if (method_exists (AboutCommand::class, 'flushState ' )) {
78- AboutCommand::flushState ();
79- }
77+ AboutCommand::flushState ();
8078 }
8179
8280 /**
You can’t perform that action at this time.
0 commit comments