You are here

public function ConstraintsTest::badUrlsProvider in Media entity Twitter 8

Provides test data for testBadUrlsOnVisibleConstraint().

File

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

Class

ConstraintsTest
Tests media_entity_twitter constraints.

Namespace

Drupal\Tests\media_entity_twitter\Unit

Code

public function badUrlsProvider() {
  return [
    [
      'https://google.com',
    ],
    [
      'https://twitter.com/drupal/ssstatus/725771037837762561',
    ],
    [
      'https://twitter.com/drupal/status',
    ],
    [
      'https://twitter.com/drupal/status/foo',
    ],
  ];
}