function YamlParserProxy::setMock

Same name in this branch
  1. 8.9.x core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::setMock()
Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::setMock()
  2. 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::setMock()
2 calls to YamlParserProxy::setMock()
YamlTest::setUp in core/tests/Drupal/Tests/Component/Serialization/YamlTest.php
YamlTest::tearDown in core/tests/Drupal/Tests/Component/Serialization/YamlTest.php

File

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

Class

YamlParserProxy

Namespace

Drupal\Tests\Component\Serialization

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.