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