Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713

This commit is contained in:
Pantheon Automation 2016-05-04 14:35:41 -07:00 committed by Greg Anderson
parent c0a0d5a94c
commit 9eae24d844
669 changed files with 3873 additions and 1553 deletions

View file

@ -32,7 +32,7 @@ class ContactLanguageTest extends WebTestBase {
protected function setUp() {
parent::setUp();
// Create and login administrative user.
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser(array(
'access site-wide contact form',
'administer languages',

View file

@ -42,7 +42,7 @@ class ContactSitewideTest extends WebTestBase {
* Tests configuration options and the site-wide contact form.
*/
function testSiteWideContact() {
// Create and login administrative user.
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser(array(
'access site-wide contact form',
'administer contact forms',
@ -296,7 +296,7 @@ class ContactSitewideTest extends WebTestBase {
* Tests auto-reply on the site-wide contact form.
*/
function testAutoReply() {
// Create and login administrative user.
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser(array('access site-wide contact form', 'administer contact forms', 'administer permissions', 'administer users'));
$this->drupalLogin($admin_user);

View file

@ -36,7 +36,7 @@ class ContactStorageTest extends ContactSitewideTest {
* Tests configuration options and the site-wide contact form.
*/
public function testContactStorage() {
// Create and login administrative user.
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser(array(
'access site-wide contact form',
'administer contact forms',

View file

@ -25,7 +25,7 @@ db_insert('contact')->fields(array(
))
->values(array(
'category' => 'Upgrade test',
'recipients'=> 'test1@example.com,test2@example.com',
'recipients' => 'test1@example.com,test2@example.com',
'reply' => 'Test reply',
'weight' => 1,
'selected' => 1,

View file

@ -6,13 +6,14 @@
*/
use Drupal\contact\ContactFormInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_entity_base_field_info().
*/
function contact_storage_test_entity_base_field_info(\Drupal\Core\Entity\EntityTypeInterface $entity_type) {
function contact_storage_test_entity_base_field_info(EntityTypeInterface $entity_type) {
if ($entity_type->id() == 'contact_message') {
$fields = array();

View file

@ -32,7 +32,7 @@ class MigrateContactSettingsTest extends MigrateDrupal6TestBase {
*/
public function testContactSettings() {
$config = $this->config('contact.settings');
$this->assertIdentical(true, $config->get('user_default_enabled'));
$this->assertIdentical(TRUE, $config->get('user_default_enabled'));
$this->assertIdentical(3, $config->get('flood.limit'));
$this->assertIdentical('some_other_category', $config->get('default_form'));
$this->assertConfigSchema(\Drupal::service('config.typed'), 'contact.settings', $config->get());

View file

@ -364,7 +364,7 @@ class MailHandlerTest extends UnitTestCase {
$message->expects($this->once())
->method('copySender')
->willReturn($copy_sender);
$recipient =$this->getMock('\Drupal\user\UserInterface');
$recipient = $this->getMock('\Drupal\user\UserInterface');
$recipient->expects($this->once())
->method('getEmail')
->willReturn('user2@drupal.org');