mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-30 18:28:40 +00:00
add unit tests
This commit is contained in:
parent
f73d80ca78
commit
e0d4930d4a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user