class StringSerializationTest
Tests serialization of string services.
@group DependencyInjection @group legacy
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\DependencyInjection\StringSerializationTest implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of StringSerializationTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ DependencyInjection/ StringSerializationTest.php, line 13
Namespace
Drupal\KernelTests\Core\DependencyInjectionView 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.