Skip to content

Commit 8b75855

Browse files
committed
Simplifying test code
1 parent 8a73433 commit 8b75855

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

auth/test/authTest.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,10 @@ private function runCommand($commandName, $projectId = null, $serviceAccountPath
9595
$application = require __DIR__ . '/../auth.php';
9696
$command = $application->get($commandName);
9797
$commandTester = new CommandTester($command);
98-
if ($serviceAccountPath) {
99-
$args = array_filter([
100-
'projectId' => $projectId,
101-
'serviceAccountPath' => $serviceAccountPath,
102-
]);
103-
} else {
104-
$args = array_filter([
105-
'projectId' => $projectId,
106-
]);
107-
}
98+
$args = array_filter([
99+
'projectId' => $projectId,
100+
'serviceAccountPath' => $serviceAccountPath,
101+
]);
108102

109103
ob_start();
110104
try {

0 commit comments

Comments
 (0)