You are here

public function OrderTokensTest::tokensTestData in Commerce Core 8.2

Test data for URL tokens.

Return value

\Generator The test data.

File

modules/order/tests/src/Kernel/OrderTokensTest.php, line 63

Class

OrderTokensTest
Tests the order tokens.

Namespace

Drupal\Tests\commerce_order\Kernel

Code

public function tokensTestData() : \Generator {
  (yield [
    '[commerce_order:order_id]',
    '123',
  ]);
  (yield [
    '[commerce_order:url]',
    'http://localhost/user/456/orders/123',
  ]);
  (yield [
    '[commerce_order:admin-url]',
    'http://localhost/admin/commerce/orders/123',
  ]);
}