function StringSerializationTest::testSerializeString

Tests that strings are not put into the container class mapping.

File

core/tests/Drupal/KernelTests/Core/DependencyInjection/StringSerializationTest.php, line 18

Class

StringSerializationTest
Tests serialization of string services.

Namespace

Drupal\KernelTests\Core\DependencyInjection

Code

public function testSerializeString() {
    $this->assertIsString($this->container
        ->get('app.root'));
    $this->container
        ->getServiceIdMappings();
    $this->assertIsString($this->container
        ->get('app.root'));
}

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