Example #1
0
 /**
  * @param array $data
  * @dataProvider showData
  */
 public function testShowExisting(array $data)
 {
     $this->view->expects($this->any())->method('file_exists')->with('A.txt')->willReturn(true);
     $this->view->expects($this->any())->method('is_dir')->with('A.txt')->willReturn(false);
     $this->preview->expects($this->any())->method('isMimeSupported')->with('text/plain')->willReturn(true);
     $output = $this->display->show($data);
     $this->assertNotEmpty($output, 'Asserting that the template output is not empty');
 }
Example #2
0
</div>

<?php 
        }
        $lastDate = $currentDate;
        ?>
<div class="section activity-section group" data-date="<?php 
        p($currentDate);
        ?>
">
	<h2>
		<span class="tooltip" title="<?php 
        p(\OCP\Util::formatDate(strip_time($event['timestamp']), true));
        ?>
">
			<?php 
        p(ucfirst($currentDate));
        ?>
		</span>
	</h2>
	<div class="boxcontainer">
<?php 
    }
    echo \OCA\Activity\Display::show($event);
}
if (!empty($_['activity'])) {
    ?>
	</div>
</div>
<?php 
}