From dc6c528176a598fdeb07416bdae41d868a7b0dfa Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 11 Nov 2023 19:04:44 +0100 Subject: [PATCH] Add unit test --- .../framework/tests/Unit/ServeCommandOptionsUnitTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php b/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php index 245adcc75a6..910e12fedfa 100644 --- a/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php +++ b/packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php @@ -66,6 +66,13 @@ public function test_getPortSelection_withPortOptionAndConfigOption() $this->assertSame(8081, $this->getMock(['port' => 8081])->getPortSelection()); } + public function test_getEnvironmentVariables() + { + $this->assertSame([ + 'HYDE_RC_REQUEST_OUTPUT' => true, + ], $this->getMock()->getEnvironmentVariables()); + } + public function testDashboardOptionPropagatesToEnvironmentVariables() { $command = $this->getMock(['dashboard' => 'false']);