You are here

public function AssertHelperTraitTest::providerCastSafeStrings in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/AssertHelperTraitTest.php \Drupal\Tests\AssertHelperTraitTest::providerCastSafeStrings()

File

core/tests/Drupal/Tests/AssertHelperTraitTest.php, line 31

Class

AssertHelperTraitTest
@coversDefaultClass \Drupal\Tests\AssertHelperTrait @group simpletest @group Tests @group legacy

Namespace

Drupal\Tests

Code

public function providerCastSafeStrings() {
  $safe_string = Markup::create('test safe string');
  return [
    [
      'test simple string',
      'test simple string',
    ],
    [
      [
        'test simple array',
        'test simple array',
      ],
      [
        'test simple array',
        'test simple array',
      ],
    ],
    [
      'test safe string',
      $safe_string,
    ],
    [
      [
        'test safe string',
        'test safe string',
      ],
      [
        $safe_string,
        $safe_string,
      ],
    ],
    [
      [
        'test safe string',
        'mixed array',
        'test safe string',
      ],
      [
        $safe_string,
        'mixed array',
        $safe_string,
      ],
    ],
  ];
}