You are here

protected function XmlEncoderTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::setUp()
  2. 9 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::setUp()

Overrides UnitTestCase::setUp

File

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

Class

XmlEncoderTest
@coversDefaultClass \Drupal\serialization\Encoder\XmlEncoder @group serialization

Namespace

Drupal\Tests\serialization\Unit\Encoder

Code

protected function setUp() : void {
  $this->baseEncoder = $this
    ->createMock(BaseXmlEncoder::class);
  $this->encoder = new XmlEncoder();
  $this->encoder
    ->setBaseEncoder($this->baseEncoder);
}