Update core 8.3.0

This commit is contained in:
Rob Davies 2017-04-13 15:53:35 +01:00
parent da7a7918f8
commit cd7a898e66
6144 changed files with 132297 additions and 87747 deletions

View file

@ -27,9 +27,9 @@ class MachineNameTest extends JavascriptTestBase {
protected function setUp() {
parent::setUp();
$account = $this->drupalCreateUser(array(
$account = $this->drupalCreateUser([
'access content',
));
]);
$this->drupalLogin($account);
}

View file

@ -52,9 +52,9 @@ class EntityReferenceAutocompleteWidgetTest extends JavascriptTestBase {
entity_get_form_display('node', 'page', 'default')
->setComponent($field_name, [
'type' => 'entity_reference_autocomplete',
'settings' => array(
'settings' => [
'match_operator' => 'CONTAINS',
),
],
])
->save();
@ -78,9 +78,9 @@ class EntityReferenceAutocompleteWidgetTest extends JavascriptTestBase {
entity_get_form_display('node', 'page', 'default')
->setComponent($field_name, [
'type' => 'entity_reference_autocomplete',
'settings' => array(
'settings' => [
'match_operator' => 'STARTS_WITH',
),
],
])
->save();

View file

@ -113,7 +113,7 @@ JS;
* The page element node if found, NULL if not.
*/
public function waitForButton($locator, $timeout = 10000) {
return $this->waitForElement('named', array('button', $locator), $timeout);
return $this->waitForElement('named', ['button', $locator], $timeout);
}
/**
@ -128,7 +128,7 @@ JS;
* The page element node if found, NULL if not.
*/
public function waitForLink($locator, $timeout = 10000) {
return $this->waitForElement('named', array('link', $locator), $timeout);
return $this->waitForElement('named', ['link', $locator], $timeout);
}
/**
@ -143,7 +143,7 @@ JS;
* The page element node if found, NULL if not.
*/
public function waitForField($locator, $timeout = 10000) {
return $this->waitForElement('named', array('field', $locator), $timeout);
return $this->waitForElement('named', ['field', $locator], $timeout);
}
/**
@ -158,7 +158,7 @@ JS;
* The page element node if found, NULL if not.
*/
public function waitForId($id, $timeout = 10000) {
return $this->waitForElement('named', array('id', $id), $timeout);
return $this->waitForElement('named', ['id', $id], $timeout);
}
/**

View file

@ -80,7 +80,7 @@ class JSWebAssertTest extends JavascriptTestBase {
$result = $page->findButton('Added WaitForElementVisible');
$this->assertEmpty($result);
$test_wait_on_element_visible->click();
$result = $assert_session->waitForElementVisible('named', array('button', 'Added WaitForElementVisible'));
$result = $assert_session->waitForElementVisible('named', ['button', 'Added WaitForElementVisible']);
$this->assertNotEmpty($result);
$this->assertTrue($result instanceof NodeElement);
$this->assertEquals(TRUE, $result->isVisible());