Skip to content

Commit 46d7e40

Browse files
committed
testing: add a test for new path setter/getter integrating the param resolution flow
1 parent d3265c0 commit 46d7e40

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/src/Host/HostTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ public function testHostWithParams()
8181
self::assertEquals($value, $host->getIdentityFile());
8282
}
8383

84+
public function testHostWithPathFromParams()
85+
{
86+
$host = new Host('host');
87+
$value = 'new_value';
88+
$host
89+
->set('env', $value)
90+
->set('path', '{{env}}');
91+
92+
self::assertEquals($value, $host->getPath());
93+
}
94+
8495
public function testHostWithUserFromConfig()
8596
{
8697
$parent = new Configuration();

0 commit comments

Comments
 (0)