public function CreateEdgeRoleCommandTest::testCreateEdgeRole in Apigee Edge 8
Calls to Drush command should pass through to CLI service.
File
- tests/
src/ Unit/ Command/ CreateEdgeRoleCommandTest.php, line 123
Class
- CreateEdgeRoleCommandTest
- Test ApigeeEdgeCommands class.
Namespace
Drupal\Tests\apigee_edge\Unit\CommandCode
public function testCreateEdgeRole() {
$this->input
->getArgument(Argument::type('string'))
->willReturn('XXX');
$this->input
->getOption(Argument::type('string'))
->willReturn('XXX');
$this->createEdgeRoleCommand
->execute($this->input
->reveal(), $this->output
->reveal());
$this->cliService
->createEdgeRoleForDrupal(Argument::type(DrupalStyle::class), Argument::type('string'), Argument::type('string'), Argument::type('string'), Argument::type('string'), Argument::type('string'), Argument::type('string'), Argument::type('bool'))
->shouldHaveBeenCalledTimes(1);
}