function TestDevelGeneratePluginManager::setDiscovery
Same name in other branches
- 8.x-1.x devel_generate/tests/src/DevelGenerateManagerTest.php \Drupal\Tests\devel_generate\TestDevelGeneratePluginManager::setDiscovery()
Sets the discovery for the manager.
Parameters
\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: The discovery object.
File
-
devel_generate/
tests/ src/ Unit/ DevelGenerateManagerTest.php, line 82
Class
- TestDevelGeneratePluginManager
- Provides a testing version of DevelGeneratePluginManager with an empty constructor.
Namespace
Drupal\Tests\devel_generate\UnitCode
public function setDiscovery(DiscoveryInterface $discovery) {
$this->discovery = $discovery;
}