public function XmlEncoderTest::testSupportsDecoding in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 55 - Contains \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest.
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'));
}