From bc0ed9667abce7e11f5f286d574f064fd4bb3b14 Mon Sep 17 00:00:00 2001 From: Adam Malone Date: Wed, 20 May 2020 13:06:33 +1000 Subject: [PATCH] Tests the ability to use the --realm option. (#88) --- tests/AcquiaCliApplicationTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/AcquiaCliApplicationTest.php b/tests/AcquiaCliApplicationTest.php index 8ebcc20..627b097 100644 --- a/tests/AcquiaCliApplicationTest.php +++ b/tests/AcquiaCliApplicationTest.php @@ -139,6 +139,14 @@ public function testClientOptions() $this->assertSame($expectedQuery, $actualQuery); } + public function testRealm() + { + $command = ['application:info', 'devcloud2', '--realm=devcloud']; + $response = $this->execute($command); + // We're not looking to test the complete output here, just that we get one. + $this->assertStringContainsString('24-a47ac10b-58cc-4372-a567-0e02b2c3d470', $response); + } + public function testCloudApi() {