From e0d4930d4a79da9ab48525e10697131c51482893 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Nov 2021 21:57:09 +0100 Subject: [PATCH] add unit tests --- tests/Models/EditorDocMapperTest.php | 22 ---------------------- tests/phpunit_default.xml | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/tests/Models/EditorDocMapperTest.php b/tests/Models/EditorDocMapperTest.php index f48330f..114b431 100755 --- a/tests/Models/EditorDocMapperTest.php +++ b/tests/Models/EditorDocMapperTest.php @@ -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); - } - } } diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index 722365c..9208c99 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -1,5 +1,5 @@ - + *vendor*