You are here

public function ConstraintsTest::embedCodeProvider in Media entity Pinterest 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/ConstraintsTest.php \Drupal\Tests\media_entity_pinterest\Unit\ConstraintsTest::embedCodeProvider()

Provides test data for testPinEmbedCodeConstraint().

File

tests/src/Unit/ConstraintsTest.php, line 60

Class

ConstraintsTest
Tests media_entity_pinterest constrains.

Namespace

Drupal\Tests\media_entity_pinterest\Unit

Code

public function embedCodeProvider() {
  return [
    'valid Pin URL' => [
      'https://www.pinterest.com/pin/15199717473573848/',
      0,
    ],
    'valid Board URL' => [
      'https://www.pinterest.com/heathceramics/behind-the-scenes/',
      0,
    ],
    'valid Board Section URL' => [
      'https://www.pinterest.com/heathceramics/favorite-places-and-spaces/a-cabin-by-heath/',
      0,
    ],
    'valid user URL' => [
      'https://www.pinterest.com/heathceramics/',
      0,
    ],
  ];
}