You are here

public function YamlTest::testGetFileExtension in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlTest::testGetFileExtension()
  2. 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlTest::testGetFileExtension()

@covers ::getFileExtension

File

core/tests/Drupal/Tests/Component/Serialization/YamlTest.php, line 49

Class

YamlTest
@coversDefaultClass \Drupal\Component\Serialization\Yaml @group Serialization

Namespace

Drupal\Tests\Component\Serialization

Code

public function testGetFileExtension() {
  $this->mockParser
    ->expects($this
    ->never())
    ->method('getFileExtension');
  $this
    ->assertEquals('yml', YamlStub::getFileExtension());
}