Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
namespace Drupal\KernelTests;
|
||||
|
||||
use Drupal\Component\FileCache\FileCacheFactory;
|
||||
use Drupal\Core\Database\Database;
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use org\bovigo\vfs\visitor\vfsStreamStructureVisitor;
|
||||
|
@ -38,8 +39,7 @@ class KernelTestBaseTest extends KernelTestBase {
|
|||
substr($this->databasePrefix, 10) => array(
|
||||
'files' => array(
|
||||
'config' => array(
|
||||
'active' => array(),
|
||||
'staging' => array(),
|
||||
'sync' => array(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -74,8 +74,8 @@ class KernelTestBaseTest extends KernelTestBase {
|
|||
$GLOBALS['destroy-me'] = TRUE;
|
||||
$this->assertArrayHasKey('destroy-me', $GLOBALS);
|
||||
|
||||
$schema = $this->container->get('database')->schema();
|
||||
$schema->createTable('foo', array(
|
||||
$database = $this->container->get('database');
|
||||
$database->schema()->createTable('foo', array(
|
||||
'fields' => array(
|
||||
'number' => array(
|
||||
'type' => 'int',
|
||||
|
@ -84,7 +84,16 @@ class KernelTestBaseTest extends KernelTestBase {
|
|||
),
|
||||
),
|
||||
));
|
||||
$this->assertTrue($schema->tableExists('foo'));
|
||||
$this->assertTrue($database->schema()->tableExists('foo'));
|
||||
|
||||
// Ensure that the database tasks have been run during set up. Neither MySQL
|
||||
// nor SQLite make changes that are testable.
|
||||
if ($database->driver() == 'pgsql') {
|
||||
$this->assertEquals('on', $database->query("SHOW standard_conforming_strings")->fetchField());
|
||||
$this->assertEquals('escape', $database->query("SHOW bytea_output")->fetchField());
|
||||
}
|
||||
|
||||
$this->assertNotNull(FileCacheFactory::getPrefix());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue