All test method should have a void return type

This commit is contained in:
Oliver Davies 2020-12-17 23:14:49 +00:00
parent 8591a0f846
commit 280a381c68
4 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface;
final class UpdatesTalkCreatedDateTest extends TalksTestBase {
public function testCreatingNode() {
public function testCreatingNode(): void {
$eventDate = Carbon::today()->addWeek();
$eventDateFormat = $eventDate
->format(DateTimeItemInterface::DATE_STORAGE_FORMAT);
@ -22,7 +22,7 @@ final class UpdatesTalkCreatedDateTest extends TalksTestBase {
$this->assertEqual($eventDateTimestamp, $talk->getCreatedTime());
}
public function testUpdatingNode() {
public function testUpdatingNode(): void {
$talk = $this->createTalk();
$originalCreatedTime = $talk->getCreatedTime();