Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -164,7 +164,16 @@ EOD;
|
|||
$site_path = $this->container->get('site.path');
|
||||
file_put_contents($key_file, $private_key);
|
||||
|
||||
// This causes the first of the fifteen passes asserted in
|
||||
// Check to see if runtime assertions are indeed on, if successful this
|
||||
// will be the first of sixteen passes asserted in confirmStubResults()
|
||||
try {
|
||||
assert(FALSE, 'Lorem Ipsum');
|
||||
$this->fail('Runtime assertions are not working.');
|
||||
}
|
||||
catch (\AssertionError $e) {
|
||||
$this->assertEqual($e->getMessage(), 'Lorem Ipsum', 'Runtime assertions Enabled and running.');
|
||||
}
|
||||
// This causes the second of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$this->pass($this->passMessage);
|
||||
|
||||
|
@ -175,7 +184,7 @@ EOD;
|
|||
// confirmStubResults().
|
||||
$this->fail($this->failMessage);
|
||||
|
||||
// This causes the second to fourth of the fifteen passes asserted in
|
||||
// This causes the third to fifth of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$user = $this->drupalCreateUser(array($this->validPermission), 'SimpleTestTest');
|
||||
|
||||
|
@ -183,15 +192,15 @@ EOD;
|
|||
$this->drupalCreateUser(array($this->invalidPermission));
|
||||
|
||||
// Test logging in as a user.
|
||||
// This causes the fifth to ninth of the fifteen passes asserted in
|
||||
// This causes the sixth to tenth of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$this->drupalLogin($user);
|
||||
|
||||
// This causes the tenth of the fifteen passes asserted in
|
||||
// This causes the eleventh of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$this->pass(t('Test ID is @id.', array('@id' => $this->testId)));
|
||||
|
||||
// These cause the eleventh to fourteenth of the fifteen passes asserted in
|
||||
// These cause the twelfth to fifteenth of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$this->assertTrue(file_exists($site_path . '/settings.testing.php'));
|
||||
// Check the settings.testing.php file got included.
|
||||
|
@ -206,7 +215,7 @@ EOD;
|
|||
// Generates a warning inside a PHP function.
|
||||
array_key_exists(NULL, NULL);
|
||||
|
||||
// This causes the fifteenth of the fifteen passes asserted in
|
||||
// This causes the sixteenth of the sixteen passes asserted in
|
||||
// confirmStubResults().
|
||||
$this->assertNothing();
|
||||
|
||||
|
@ -250,7 +259,7 @@ EOD;
|
|||
|
||||
$this->assertAssertion("Debug: 'Foo'", 'Debug', 'Fail', 'SimpleTestTest.php', 'Drupal\simpletest\Tests\SimpleTestTest->stubTest()');
|
||||
|
||||
$this->assertEqual('15 passes, 3 fails, 2 exceptions, 3 debug messages', $this->childTestResults['summary']);
|
||||
$this->assertEqual('16 passes, 3 fails, 2 exceptions, 3 debug messages', $this->childTestResults['summary']);
|
||||
|
||||
$this->testIds[] = $test_id = $this->getTestIdFromResults();
|
||||
$this->assertTrue($test_id, 'Found test ID in results.');
|
||||
|
|
Reference in a new issue