You are here

public function CasRedirectDataTest::testCachable in CAS 8

Same name and namespace in other branches
  1. 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\Unit

Code

public function testCachable() {
  $data = new CasRedirectData();
  $this
    ->assertFalse($data
    ->getIsCacheable(), 'Default Value');
  $data
    ->setIsCacheable(TRUE);
  $this
    ->assertTrue($data
    ->getIsCacheable(), 'Modified value');
}