You are here

public function MockSerializer::__construct in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\MockSerializer::__construct()
  2. 1.x tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\MockSerializer::__construct()

Constructor. Store a copy of the test class so we can use its prophecy.

Parameters

ConfigEntityRevisionsRevertFormBaseTest $testClass: The test class instance.

File

tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php, line 673

Class

MockSerializer
The serializer (sic) we'd normally mock above has deserialize as a final method. Instead of using it, define our own class here.

Namespace

Drupal\Tests\config_entity_revisions\Unit

Code

public function __construct(ConfigEntityRevisionsRevertFormBaseTest $testClass) {
  $this->testClass = $testClass;
}