function SerializationTest::setUp

Same name in other branches
  1. 8.9.x core/modules/serialization/tests/src/Kernel/SerializationTest.php \Drupal\Tests\serialization\Kernel\SerializationTest::setUp()
  2. 10 core/modules/serialization/tests/src/Kernel/SerializationTest.php \Drupal\Tests\serialization\Kernel\SerializationTest::setUp()
  3. 11.x core/modules/serialization/tests/src/Kernel/SerializationTest.php \Drupal\Tests\serialization\Kernel\SerializationTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/serialization/tests/src/Kernel/SerializationTest.php, line 32

Class

SerializationTest
Functional tests for serialization system.

Namespace

Drupal\Tests\serialization\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->serializer = $this->container
        ->get('serializer');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.