You are here

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

@covers ::getProvider @dataProvider providerData

File

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

Class

AmpSocialPostTest
@coversDefaultClass \Drupal\amp\Element\AmpSocialPost

Namespace

Drupal\Tests\amp\Unit

Code

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