You are here

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

@covers ::preRenderSocialPost @dataProvider renderData

File

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

Class

AmpSocialPostTest
@coversDefaultClass \Drupal\amp\Element\AmpSocialPost

Namespace

Drupal\Tests\amp\Unit

Code

public function testpreRenderSocialPost($original, $desired) {
  $processed = AmpSocialPost::preRenderSocialPost($original);
  $this
    ->assertEquals($processed, $desired);
}