Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -116,4 +116,5 @@ class BrokenSetUpTest extends WebTestBase {
|
|||
$this->pass('The test method has run.');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,4 +23,5 @@ class FolderTest extends WebTestBase {
|
|||
$directory = file_default_scheme() . '://styles';
|
||||
$this->assertTrue(file_prepare_directory($directory, FALSE), 'Directory created.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -58,4 +58,5 @@ class InstallationProfileModuleTestsTest extends WebTestBase {
|
|||
$this->drupalPostForm(NULL, $edit, t('Run tests'));
|
||||
$this->assertText('SystemListingCompatibleTest test executed.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -74,4 +74,5 @@ class MailCaptureTest extends WebTestBase {
|
|||
$captured_emails = $this->drupalGetMails(array('id' => 'drupal_mail_test_4'));
|
||||
$this->assertEqual(count($captured_emails), 2, 'All emails with the same id are returned when filtering by id.', 'Email');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -53,4 +53,5 @@ class MissingCheckedRequirementsTest extends WebTestBase {
|
|||
$this->fail('Test ran when it failed requirements check.');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\simpletest\Tests;
|
||||
|
||||
use Drupal\simpletest\KernelTestBase;
|
||||
|
||||
/**
|
||||
* This test should not load since it requires a module that is not found.
|
||||
*
|
||||
* @group simpletest
|
||||
* @dependencies simpletest_missing_module
|
||||
*/
|
||||
class MissingDependentModuleUnitTest extends KernelTestBase {
|
||||
|
||||
/**
|
||||
* Ensure that this test will not be loaded despite its dependency.
|
||||
*/
|
||||
function testFail() {
|
||||
$this->fail('Running test with missing required module.');
|
||||
}
|
||||
|
||||
}
|
|
@ -86,8 +86,8 @@ class SimpleTestBrowserTest extends WebTestBase {
|
|||
$this->drupalLogout();
|
||||
|
||||
$system_path = $base_url . '/' . drupal_get_path('module', 'system');
|
||||
$HTTP_path = $system_path .'/tests/http.php/user/login';
|
||||
$https_path = $system_path .'/tests/https.php/user/login';
|
||||
$HTTP_path = $system_path . '/tests/http.php/user/login';
|
||||
$https_path = $system_path . '/tests/https.php/user/login';
|
||||
// Generate a valid simpletest User-Agent to pass validation.
|
||||
$this->assertTrue(preg_match('/simpletest\d+/', $this->databasePrefix, $matches), 'Database prefix contains simpletest prefix.');
|
||||
$test_ua = drupal_generate_test_ua($matches[0]);
|
||||
|
|
|
@ -78,7 +78,7 @@ if (!function_exists('simpletest_test_stub_settings_function')) {
|
|||
}
|
||||
EOD;
|
||||
|
||||
file_put_contents($this->siteDirectory. '/' . 'settings.testing.php', $php);
|
||||
file_put_contents($this->siteDirectory . '/' . 'settings.testing.php', $php);
|
||||
// @see \Drupal\system\Tests\DrupalKernel\DrupalKernelSiteTest
|
||||
$class = __CLASS__;
|
||||
$yaml = <<<EOD
|
||||
|
@ -284,11 +284,16 @@ EOD;
|
|||
/**
|
||||
* Asserts that an assertion with specified values is displayed in results.
|
||||
*
|
||||
* @param string $message Assertion message.
|
||||
* @param string $type Assertion type.
|
||||
* @param string $status Assertion status.
|
||||
* @param string $file File where the assertion originated.
|
||||
* @param string $function Function where the assertion originated.
|
||||
* @param string $message
|
||||
* Assertion message.
|
||||
* @param string $type
|
||||
* Assertion type.
|
||||
* @param string $status
|
||||
* Assertion status.
|
||||
* @param string $file
|
||||
* File where the assertion originated.
|
||||
* @param string $function
|
||||
* Function where the assertion originated.
|
||||
*
|
||||
* @return Assertion result.
|
||||
*/
|
||||
|
|
Reference in a new issue