add unit tests

This commit is contained in:
Dennis Eichhorn 2021-11-02 21:57:09 +01:00
parent f73d80ca78
commit e0d4930d4a
2 changed files with 1 additions and 23 deletions

View File

@ -51,26 +51,4 @@ final class EditorDocMapperTest extends \PHPUnit\Framework\TestCase
$docR2 = EditorDocMapper::getByVirtualPath('/some/test/path', 1);
self::assertEquals($docR, \reset($docR2));
}
/**
* @group volume
* @group module
* @coversNothing
*/
public function testVolume() : void
{
for ($i = 0; $i < 100; ++$i) {
$text = new Text();
$doc = new EditorDoc();
// Test other
$doc->createdBy = new NullAccount(\mt_rand(1, 1));
$doc->title = $text->generateText(\mt_rand(3, 7));
$doc->content = $text->generateText(\mt_rand(20, 500));
$doc->setVirtualPath('/some/test/path');
$id = EditorDocMapper::create($doc);
}
}
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" columns="120" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
<exclude>
<directory>*vendor*</directory>