protected function CreateEdgeRoleCommandTest::setUp in Apigee Edge 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Command/ CreateEdgeRoleCommandTest.php, line 99
Class
- CreateEdgeRoleCommandTest
- Test ApigeeEdgeCommands class.
Namespace
Drupal\Tests\apigee_edge\Unit\CommandCode
protected function setUp() {
if (!class_exists('Drupal\\Console\\Core\\Command\\Command')) {
$this
->markTestSkipped('Skipping because Drupal Console is not installed.');
}
parent::setUp();
$this->cliService = $this
->prophesize(CliServiceInterface::class);
$this->logMessageParser = $this
->prophesize(LogMessageParserInterface::class);
$this->loggerChannelFactory = $this
->prophesize(LoggerChannelFactoryInterface::class);
$this->createEdgeRoleCommand = new CreateEdgeRoleCommand($this->cliService
->reveal(), $this->logMessageParser
->reveal(), $this->loggerChannelFactory
->reveal());
$this->input = $this
->prophesize(InputInterface::class);
$this->output = $this
->prophesize(OutputInterface::class);
$this->io = $this
->prophesize(DrupalStyle::class);
$this->outputFormatter = $this
->prophesize(OutputFormatterInterface::class)
->reveal();
$this->output
->getFormatter()
->willReturn($this->outputFormatter);
$this->output
->getVerbosity()
->willReturn(OutputInterface::VERBOSITY_DEBUG);
}