projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
Tests
/
Traits
/
Core
/
CronRunTrait.php
1
<?php
2
3
namespace Drupal\Tests\Traits\Core;
4
5
/**
6
* Adds ability to run cron from tests.
7
*/
8
trait CronRunTrait {
9
10
/**
11
* Runs cron on the test site.
12
*/
13
protected function cronRun() {
14
$this->drupalGet('cron/' . \Drupal::state()->get('system.cron_key'));
15
}
16
17
}