You are here

public static function ContentProcessorTest::assertTranslatedEquals in GatherContent 8.4

Function for asserting that a translated value matches the original one.

1 call to ContentProcessorTest::assertTranslatedEquals()
ContentProcessorTest::assertNodeEqualsGcItem in tests/src/Kernel/ContentProcessorTest.php
Checks whether a node and a GC item contains the same data.

File

tests/src/Kernel/ContentProcessorTest.php, line 185

Class

ContentProcessorTest
Class for testing core node import functionality.

Namespace

Drupal\Tests\gathercontent\Kernel

Code

public static function assertTranslatedEquals($original, $translated) {
  static::assertEquals($translated, $original . ' translated');
}