Skip to content

Commit 1473b55

Browse files
committed
Add php_runtime_generation field to env:list command output
- Add php_runtime_generation field label to env:list command - Add test coverage for php_runtime_generation field in env:list - Fix indentation in Environment.php getPHPRuntimeGeneration method Resolves #2720
1 parent 78f6f42 commit 1473b55

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Commands/Env/ListCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ListCommand extends TerminusCommand implements SiteAwareInterface
3434
* connection_mode: Connection Mode
3535
* locked: Locked
3636
* initialized: Initialized
37+
* php_runtime_generation: PHP Runtime Generation
3738
* @return RowsOfFields
3839
*
3940
* @param string $site_id Site name

src/Models/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ public function getPHPVersion()
690690
*/
691691
public function getPHPRuntimeGeneration()
692692
{
693-
return $this->settings('appserver_runtime')->php_runtime_generation;
693+
return $this->settings('appserver_runtime')->php_runtime_generation;
694694
}
695695

696696
/**

tests/Functional/EnvCommandsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ public function testListCommand()
455455
$env,
456456
'An environment should have "initialized" field.'
457457
);
458+
$this->assertArrayHasKey(
459+
'php_runtime_generation',
460+
$env,
461+
'An environment should have "php_runtime_generation" field.'
462+
);
458463
}
459464

460465
/**

0 commit comments

Comments
 (0)