Use EntityKernelTestBase

This commit is contained in:
Oliver Davies 2018-04-19 14:16:57 +01:00
parent 4ec57cdf2e
commit 442ec19bc1
4 changed files with 3 additions and 34 deletions

View file

@ -1,10 +0,0 @@
langcode: en
status: true
dependencies: { }
name: Article
type: article
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: true

View file

@ -1,12 +0,0 @@
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: KuyA4NHPXcmKAjRtwa0vQc2ZcyrUJy6IlS2TAyMNRbc
name: 'Basic page'
type: page
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: false

View file

@ -1,6 +0,0 @@
name: TDD Dublin Test
type: module
core: 8.x
dependencies:
- tdd_dublin:tdd_dublin
hidden: true

View file

@ -2,24 +2,21 @@
namespace Drupal\Tests\tdd_dublin\Kernel; namespace Drupal\Tests\tdd_dublin\Kernel;
use Drupal\KernelTests\KernelTestBase; use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
use Drupal\node\Entity\Node; use Drupal\node\Entity\Node;
use Drupal\views\ResultRow; use Drupal\views\ResultRow;
/** /**
* @group tdd_dublin * @group tdd_dublin
*/ */
class PageListTest extends KernelTestBase { class PageListTest extends EntityKernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected static $modules = [ public static $modules = [
'node', 'node',
'system',
'tdd_dublin', 'tdd_dublin',
'tdd_dublin_test',
'user',
'views', 'views',
]; ];