示例#1
0
 /**
  * Tests the JWeb::allowCache method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testAllowCache()
 {
     $this->assertThat($this->inspector->allowCache(), $this->isFalse(), 'Return value of allowCache should be false by default.');
     $this->assertThat($this->inspector->allowCache(true), $this->isTrue(), 'Return value of allowCache should return the new state.');
     $this->assertThat($this->inspector->getClassProperty('response')->cachable, $this->isTrue(), 'Checks the internal cache property has been set.');
 }