Skip to content

Commit

Permalink
fix docfx test
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Jun 21, 2024
1 parent 3f23062 commit 672c20a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/tests/Unit/Command/ComponentInfoCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testListAll()

public function testComponentDetails()
{
self::$commandTester->execute(['-c' => 'AccessContextManager']);
self::$commandTester->execute(['-c' => ['AccessContextManager']]);

// confirm a few fields we expect to see in the output
$display = self::$commandTester->getDisplay();
Expand All @@ -69,7 +69,7 @@ public function testComponentDetails()
public function testFieldsOption()
{
self::$commandTester->execute([
'-c' => 'AccessContextManager',
'-c' => ['AccessContextManager'],
'--fields' => 'component_name,package_name,doesnt_exist',
]);
$this->assertEquals(<<<EOL
Expand All @@ -84,7 +84,7 @@ public function testFieldsOption()
public function testFieldsOptionOrder()
{
self::$commandTester->execute([
'-c' => 'AccessContextManager',
'-c' => ['AccessContextManager'],
'--fields' => 'package_name,component_name',
]);
$this->assertEquals(<<<EOL
Expand All @@ -101,7 +101,7 @@ public function testCsv()
mkdir($tmpDir = sys_get_temp_dir() . '/component-info-test-' . time());
$csv = $tmpDir . '/test.csv';
self::$commandTester->execute([
'-c' => 'AccessContextManager',
'-c' => ['AccessContextManager'],
'--fields' => 'package_name,component_name,github_repo',
'--csv' => $csv,
]);
Expand Down

0 comments on commit 672c20a

Please sign in to comment.