Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 11, 2023
1 parent f341cdc commit dc6c528
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit dc6c528

Please sign in to comment.