function BuildTestBase::getPortNumber
Same name and namespace in other branches
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getPortNumber()
Get the port number for requests.
Test should never call this. Used by standUpServer().
Return value
int
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 536
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
protected function getPortNumber() {
if (empty($this->hostPort)) {
$this->hostPort = $this->findAvailablePort();
}
return $this->hostPort;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.