Example #1
0
 /**
  * @test
  */
 public function testIsCacheEnabled()
 {
     $subject = new RenderingContext($this->getMock(TemplateView::class));
     $this->assertFalse($subject->isCacheEnabled());
     $subject->setCache($this->getMock(SimpleFileCache::class));
     $this->assertTrue($subject->isCacheEnabled());
 }