Skip to content

Commit

Permalink
clean up, clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Jan 26, 2024
1 parent cb35604 commit eaa2229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/src/Commands/Acsf/AcsfApiCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,21 @@ public function providerTestAcsfCommandExecutionForHttpGetMultiple(): array {
/**
* @dataProvider providerTestAcsfCommandExecutionForHttpGetMultiple
*/
public function testAcsfCommandExecutionForHttpGetMultiple(mixed $method, mixed $specPath, mixed $path, mixed $command, mixed $arguments = [], mixed $jsonArguments = []): void {
public function testAcsfCommandExecutionForHttpGetMultiple(string $method, string $specPath, string $path, string $command, array $arguments = [], array $jsonArguments = []): void {
$mockBody = $this->getMockResponseFromSpec($specPath, $method, '200');
$this->clientProphecy->request($method, $path)->willReturn($mockBody)->shouldBeCalled();
foreach ($jsonArguments as $argumentName => $value) {
$this->clientProphecy->addOption('json', [$argumentName => $value]);
}
$this->command = $this->getApiCommandByName($command);
$this->executeCommand($arguments, []);
$this->executeCommand($arguments);

// Assert.

$output = $this->getDisplay();
$this->assertNotNull($output);
$this->assertJson($output);
$contents = json_decode($output, TRUE);
json_decode($output, TRUE);
}

protected function setClientProphecies(): void {
Expand Down

0 comments on commit eaa2229

Please sign in to comment.