public function SpyEventDispatcher::setExpectedEventCount in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/SpyEventDispatcher.php \Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\SpyEventDispatcher::setExpectedEventCount()
Set the expected event count.
Parameters
int $count: Event count.
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ SpyEventDispatcher.php, line 38
Class
- SpyEventDispatcher
- Class SpyEventDispatcher.
Namespace
Drupal\Tests\preprocess_event_dispatcher\Unit\HelpersCode
public function setExpectedEventCount(int $count) : void {
$this->count = $count;
}