class StringSerializationTest

Tests serialization of string services.

@group DependencyInjection @group legacy

Hierarchy

Expanded class hierarchy of StringSerializationTest

File

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

Namespace

Drupal\KernelTests\Core\DependencyInjection
View source
class StringSerializationTest extends KernelTestBase {
  
  /**
   * Tests that strings are not put into the container class mapping.
   */
  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.