BuildTestBase::$portLocks
Same name in other branches
- 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks
- 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks
A list of ports used by the test.
Prevent the same process finding the same port by storing a list of ports already discovered. This also stores locks so they are not released until the test class is torn down.
Type: \Symfony\Component\Lock\LockInterface[]
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 129
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
private $portLocks = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.