You are here

trait RemoteCookieTestTrait in Bakery Single Sign-On System 8.2

Hierarchy

2 files declare their use of RemoteCookieTestTrait
GingerbreadTest.php in tests/src/Unit/Cookies/GingerbreadTest.php
StroopwafelTest.php in tests/src/Unit/Cookies/StroopwafelTest.php

File

tests/src/Traits/RemoteCookieTestTrait.php, line 5

Namespace

Drupal\Tests\bakery\Traits
View source
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());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CookieTestTrait::$bakeryService protected property
CookieTestTrait::$cookie protected property
CookieTestTrait::$cookieName protected property
CookieTestTrait::$dataExtra protected property
CookieTestTrait::$kitchenService protected property
CookieTestTrait::provideTestData abstract public function 5
CookieTestTrait::setupBrowserContainer protected function
CookieTestTrait::testFromData public function @covers ::__construct @covers ::toData @covers ::fromData @dataProvider provideTestData
CookieTestTrait::testGetName public function @covers ::getName
RemoteCookieTestTrait::$remotePath protected property
RemoteCookieTestTrait::testGetPath public function @covers ::getPath @dataProvider provideTestData