Mercurial > hg > isophonics-drupal-site
comparison core/modules/contact/tests/src/Unit/MailHandlerTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
365 ->willReturn($copy_sender); | 365 ->willReturn($copy_sender); |
366 $recipient = $this->getMock('\Drupal\user\UserInterface'); | 366 $recipient = $this->getMock('\Drupal\user\UserInterface'); |
367 $recipient->expects($this->once()) | 367 $recipient->expects($this->once()) |
368 ->method('getEmail') | 368 ->method('getEmail') |
369 ->willReturn('user2@drupal.org'); | 369 ->willReturn('user2@drupal.org'); |
370 $recipient->expects($this->once()) | 370 $recipient->expects($this->any()) |
371 ->method('getDisplayName') | 371 ->method('getDisplayName') |
372 ->willReturn('user2'); | 372 ->willReturn('user2'); |
373 $recipient->expects($this->once()) | 373 $recipient->expects($this->once()) |
374 ->method('getPreferredLangcode') | 374 ->method('getPreferredLangcode') |
375 ->willReturn('en'); | 375 ->willReturn('en'); |