public function CasPropertyBagTest::testSetPgt in CAS 8
Same name and namespace in other branches
- 2.x tests/src/Unit/CasPropertyBagTest.php \Drupal\Tests\cas\Unit\CasPropertyBagTest::testSetPgt()
Test setting a proxy granting ticket.
@covers ::setPgt
File
- tests/
src/ Unit/ CasPropertyBagTest.php, line 49
Class
- CasPropertyBagTest
- CasPropertyBag unit tests.
Namespace
Drupal\Tests\cas\UnitCode
public function testSetPgt() {
$bag = new CasPropertyBag($this
->randomMachineName(8));
$pgt = $this
->randomMachineName(24);
$bag
->setPgt($pgt);
$this
->assertEquals($pgt, $bag
->getPgt());
}