Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 14, 2024
1 parent 3551105 commit 572a54d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/phpunit/src/Commands/Acsf/AcsfAuthLoginCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,18 @@ public function testAcsfAuthLoginInvalidInput(): void
$this->createDataStores();
$this->command = $this->createCommand();
$this->expectException(MissingInputException::class);
$this->executeCommand([], ['n', 'Enter a new factory URL', 'example.com']);
$this->executeCommand([], ['Enter a new factory URL', 'example.com']);
}

public function testAcsfAuthLoginValidInput(): void
{
$this->removeMockCloudConfigFile();
$this->createMockCloudConfigFile(AcsfCommandTestBase::getAcsfCredentialsFileContents());
$this->createDataStores();
$this->command = $this->createCommand();
$this->executeCommand([], ['Enter a new factory URL', 'https://example.com', 'Enter a new user', 'asdfasdf', 'asdfasdfasdf']);
$output = $this->getDisplay();
$this->assertStringContainsString('Enter your Site Factory URL (including https://) (option -f, --factory-url):', $output);
}

protected function assertKeySavedCorrectly(): void
Expand Down

0 comments on commit 572a54d

Please sign in to comment.