csvxml/tests/CsvxmlAvailableFieldsTest.php

34 lines
782 B
PHP
Raw Permalink Normal View History

<?PHP
/**
* This script contains tests for the home page.
*
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
*/
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
require_once __DIR__ . "/../functions/functions.php";
/**
* Test class for the start page.
*/
final class CsvxmlAvailableFieldsTest extends TestCase {
/**
* Test for HTML output.
*
* @return void
*/
public function testOutput():void {
$fieldsGetter = new CsvxmlAvailableFields('en');
$availableFields = $fieldsGetter->getFields();
foreach ($availableFields as $type) {
foreach ($type as $name => $entry) {
self::assertTrue($entry instanceof FieldEntry, $name . " is not a FieldEntry");
}
}
}
}