You are here

public static function YamlParserProxy::setMock in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::setMock()
  2. 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::setMock()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::setMock()
1 call to YamlParserProxy::setMock()
YamlTest::testGetSeralization in core/tests/Drupal/Tests/Core/Serialization/YamlTest.php
Test that the overridden serializer is called.

File

core/tests/Drupal/Tests/Core/Serialization/YamlTest.php, line 48

Class

YamlParserProxy

Namespace

Drupal\Tests\Core\Serialization

Code

public static function setMock($mock) {
  static::$mock = $mock;
}