A free open source IT asset/license management system
Improve output
Marcus Moore23cc237802ba
diff --git a/app/Console/Commands/RegenerateAcceptances.php b/app/Console/Commands/RegenerateAcceptances.phpindex c695b5c7c2..2897322fb2 100644--- a/app/Console/Commands/RegenerateAcceptances.php+++ b/app/Console/Commands/RegenerateAcceptances.php@@ -394,8 +394,8 @@ class RegenerateAcceptances extends Command$this->info('Notified: '.$result->notified.'.');if ($result->holdersWithoutEmail !== []) {- $this->info('The following users do not have an email address:');- $this->table(['ID', 'Name'], $result->holdersWithoutEmail);+ $this->info('The following users were not emailed because they do not have an email address:');+ $this->table(['ID', 'User'], $result->holdersWithoutEmail);}} elseif ($result->created > 0) {$this->line('Nobody was emailed. Run snipeit:acceptance-reminder to email them.');diff --git a/tests/Feature/Console/RegenerateAcceptancesTest.php b/tests/Feature/Console/RegenerateAcceptancesTest.phpindex bb97256a3a..1a6246b65a 100644--- a/tests/Feature/Console/RegenerateAcceptancesTest.php+++ b/tests/Feature/Console/RegenerateAcceptancesTest.php@@ -1111,8 +1111,8 @@ class RegenerateAcceptancesTest extends TestCase$this->artisan('snipeit:regenerate-acceptances', ['--no-interaction' => true, '--notify' => true])->expectsOutput('Created: 1.')->expectsOutput('Notified: 0.')- ->expectsOutput('The following users do not have an email address:')- ->expectsTable(['ID', 'Name'], [[$holder->id, $holder->present()->fullName]])+ ->expectsOutput('The following users were not emailed because they do not have an email address:')+ ->expectsTable(['ID', 'User'], [[$holder->id, $holder->present()->fullName]])->assertExitCode(0);Mail::assertNothingSent();