MAPG-199 move test views to another folder to prevent code analysis errors

This commit is contained in:
Bence Pőcze 2020-07-05 21:48:01 +02:00
parent af98d71924
commit 9e5f7405d1
Signed by: bence
GPG Key ID: AA52B11A3269D1C1
10 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class LinkViewCommand extends Command
$view = substr($file->getPath(), $folderLength) . '/' . $file->getBasename('.php'); $view = substr($file->getPath(), $folderLength) . '/' . $file->getBasename('.php');
if (strpos($view, 'templates') === 0) { if (strpos($view, 'templates') === 0 || strpos($view, 'tests') === 0) {
continue; continue;
} }

View File

@ -6,7 +6,7 @@ use PHPUnit\Framework\TestCase;
final class ParserTest extends TestCase final class ParserTest extends TestCase
{ {
const TEST_VIEWS_PATH = __DIR__ . '/../assets/views'; const TEST_VIEWS_PATH = __DIR__ . '/../../views/tests';
public function testCanParseViewWithoutExtends(): void public function testCanParseViewWithoutExtends(): void
{ {