protected function NullifyQueueIdTest::captureArg in Acquia Content Hub 8.2
Captures $objects argument value of "putEntities" method.
Parameters
mixed $argument: A method's argument.
Return value
\PHPUnit\Framework\Constraint\Callback Callback.
See also
\Drupal\acquia_contenthub_publisher\Plugin\QueueWorker\ContentHubExportQueueWorker::processItem()
File
- tests/
src/ Kernel/ NullifyQueueIdTest.php, line 278
Class
- NullifyQueueIdTest
- Tests the NullifyQueueId class.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function captureArg(&$argument) {
return $this
->callback(function ($argument_to_mock) use (&$argument) {
$argument = $argument_to_mock;
return TRUE;
});
}