This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
supergrecko
committed
Apr 7, 2019
1 parent
6155012
commit 9250f3b
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace RiotQuest\Tests\Framework; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use RiotQuest\Components\Framework\Engine\Filesystem; | ||
|
||
class TemplateTest extends TestCase | ||
{ | ||
|
||
/** | ||
* Test that the collection template works | ||
* | ||
* @throws \ReflectionException | ||
*/ | ||
public function testTemplateGeneration() | ||
{ | ||
(new Filesystem())->generateTemplates(); | ||
$this->assertFileExists(__DIR__ . '/../../src/storage/templates/manifest.json'); | ||
} | ||
|
||
/** | ||
* Tests that wiping all the templates works | ||
*/ | ||
public function testTemplateFlush() | ||
{ | ||
(new Filesystem())->flushTemplates(); | ||
$this->assertFileNotExists(__DIR__ . '/../../src/storage/templates/manifest.json'); | ||
} | ||
|
||
} |