<?php
namespace Drupal\serialization\Tests;
use Drupal\simpletest\DrupalUnitTestBase;
abstract class NormalizerTestBase extends DrupalUnitTestBase {
public static $modules = array(
'serialization',
'system',
'entity',
'field',
'entity_test',
'text',
'field_sql_storage',
);
protected function setUp() {
parent::setUp();
$this
->installSchema('entity_test', array(
'entity_test_mulrev',
'entity_test_mulrev_property_revision',
'entity_test_mulrev_property_data',
));
$this
->installSchema('system', array(
'url_alias',
));
$this
->installConfig(array(
'field',
));
field_create_field(array(
'field_name' => 'field_test_text',
'type' => 'text',
'cardinality' => 1,
'translatable' => FALSE,
));
$instance = array(
'entity_type' => 'entity_test_mulrev',
'field_name' => 'field_test_text',
'bundle' => 'entity_test_mulrev',
'label' => 'Test text-field',
'widget' => array(
'type' => 'text_textfield',
'weight' => 0,
),
);
field_create_instance($instance);
}
}