public function BrowserCookieTraitTest::testCookieName in Bakery Single Sign-On System 8.2
@covers ::cookieName @covers ::getBakeryKitchen
File
- tests/
src/ Unit/ Cookies/ BrowserCookieTraitTest.php, line 56
Class
- BrowserCookieTraitTest
- @coversDefaultClass \Drupal\bakery\Cookies\BrowserCookieTrait
Namespace
Drupal\Tests\bakery\Unit\CookiesCode
public function testCookieName() {
$this->kitchenService
->cookieName('test')
->shouldBeCalledOnce()
->willReturn('jibberish');
$this
->assertEquals('jibberish', (new class {
use BrowserCookieTrait;
public function test() {
return $this
->cookieName('test');
}
})
->test());
}