ForenaTest.php in Forena Reports 8
File
tests/src/Unit/ForenaTest.php
View source
<?php
namespace Drupal\Tests\forena\Unit;
use Drupal\forena\Forena;
class ForenaTest extends FrxTestCase {
protected $forena;
public function setUp() {
$this->forena = new Forena();
}
public function testReport() {
$content = $this->forena
->report('test');
$this
->assertNotEmpty($content);
$content2 = $this->forena
->report('include');
$this
->assertNotEmpty($content2);
$this
->assertNotEquals($content['report']['#template'], $content2['report']['#template']);
}
}