function XmlEncoderTest::testSupportsDecoding

Tests the supportsDecoding() method.

File

core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php, line 65

Class

XmlEncoderTest
Tests Drupal\serialization\Encoder\XmlEncoder.

Namespace

Drupal\Tests\serialization\Unit\Encoder

Code

public function testSupportsDecoding() : void {
  $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.