public function CasPropertyBagTest::testSetAttributes in CAS 8
Same name and namespace in other branches
- 2.x tests/src/Unit/CasPropertyBagTest.php \Drupal\Tests\cas\Unit\CasPropertyBagTest::testSetAttributes()
Test setting the attributes array.
@covers ::setAttributes
File
- tests/
src/ Unit/ CasPropertyBagTest.php, line 61
Class
- CasPropertyBagTest
- CasPropertyBag unit tests.
Namespace
Drupal\Tests\cas\UnitCode
public function testSetAttributes() {
$bag = new CasPropertyBag($this
->randomMachineName(8));
$attributes = [
'foo' => [
'bar',
],
'baz' => [
'quux, foobar',
],
];
$bag
->setAttributes($attributes);
$this
->assertEquals($attributes, $bag
->getAttributes());
}