public function CasRedirectDataTest::testCachable in CAS 8
Same name and namespace in other branches
- 2.x tests/src/Unit/CasRedirectDataTest.php \Drupal\Tests\cas\Unit\CasRedirectDataTest::testCachable()
Test Caceable getter and setter.
File
- tests/
src/ Unit/ CasRedirectDataTest.php, line 81
Class
- CasRedirectDataTest
- CasRedirectData unit tests.
Namespace
Drupal\Tests\cas\UnitCode
public function testCachable() {
$data = new CasRedirectData();
$this
->assertFalse($data
->getIsCacheable(), 'Default Value');
$data
->setIsCacheable(TRUE);
$this
->assertTrue($data
->getIsCacheable(), 'Modified value');
}