You are here

public function AmpSocialPostTest::testGetId in Accelerated Mobile Pages (AMP) 8.3

@covers ::getId @dataProvider idData

File

tests/src/Unit/AmpSocialPostTest.php, line 73

Class

AmpSocialPostTest
@coversDefaultClass \Drupal\amp\Element\AmpSocialPost

Namespace

Drupal\Tests\amp\Unit

Code

public function testGetId($original, $desired, $provider) {
  $processed = AmpSocialPost::getId($original, $provider);
  $this
    ->assertEquals($processed, $desired);
}