function XmlEncoderTest::testSupportsEncoding
Same name in other branches
- 9 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::testSupportsEncoding()
- 8.9.x core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::testSupportsEncoding()
- 10 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::testSupportsEncoding()
Tests the supportsEncoding() method.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Encoder/ XmlEncoderTest.php, line 52
Class
- XmlEncoderTest
- @coversDefaultClass \Drupal\serialization\Encoder\XmlEncoder @group serialization
Namespace
Drupal\Tests\serialization\Unit\EncoderCode
public function testSupportsEncoding() : void {
$this->assertTrue($this->encoder
->supportsEncoding('xml'));
$this->assertFalse($this->encoder
->supportsEncoding('json'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.