You are here

public function TagViewTest::getShortTagQueryStringProvider in Doubleclick for Publishers (DFP) 8

Data provider for self::testGetShortTagQueryString().

File

tests/src/Unit/View/TagViewTest.php, line 113
Contains \Drupal\Tests\dfp\Unit\View\TagViewTest.

Class

TagViewTest
@coversDefaultClass \Drupal\dfp\View\TagView @group dfp

Namespace

Drupal\Tests\dfp\Unit\View

Code

public function getShortTagQueryStringProvider() {
  return [
    [
      'adunit',
      '300x200',
      [],
      '12345',
      '|^iu=/12345/adunit&sz=300x200&c=[0-9]{5}$|',
    ],
    [
      'adunit',
      '300x200',
      [
        [
          'target' => 'target',
          'value' => 'value,value2',
        ],
      ],
      '12345',
      '|^iu=/12345/adunit&sz=300x200&c=[0-9]{5}&t=target%3Dvalue%2Cvalue2$|',
    ],
    [
      'adunit',
      '300x200',
      [
        [
          'target' => 'target',
          'value' => 'value,value2',
        ],
        [
          'target' => 'target2',
          'value' => 'value3',
        ],
      ],
      '12345',
      '|^iu=/12345/adunit&sz=300x200&c=[0-9]{5}&t=target%3Dvalue%2Cvalue2%26target2%3Dvalue3$|',
    ],
  ];
}