You are here

RemoteCookieTestTrait.php in Bakery Single Sign-On System 8.2

File

tests/src/Traits/RemoteCookieTestTrait.php
View source
<?php

namespace Drupal\Tests\bakery\Traits;

trait RemoteCookieTestTrait {
  use CookieTestTrait;

  /**
   * @var string
   */
  protected $remotePath;

  /**
   * @covers ::getPath
   * @dataProvider provideTestData
   */
  public function testGetPath($data) {
    $this
      ->assertEquals($this->remotePath, $this->cookie::fromData($data)
      ->getPath());
  }

}

Traits