test path fixes

This commit is contained in:
Dennis Eichhorn 2020-03-28 16:27:03 +01:00
parent 607bdcefaa
commit 6f5c521b81
31 changed files with 6 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

View File

@ -23,8 +23,6 @@ use phpOMS\Event\EventManager;
use phpOMS\Module\ModuleManager;
use phpOMS\Router\WebRouter;
require_once __DIR__ . '/../../tests/Autoloader.php';
/**
* @internal
*/

View File

@ -82,14 +82,14 @@ class CollectionTest extends \PHPUnit\Framework\TestCase
public function testSourceInputOutput() : void
{
$this->media->setSources([new NullMedia(1), new NullMedia(2), new NullMedia(3)]);
self::assertEquals([new NullMedia(1), new NullMedia(2), new NullMedia(3)], $this->media->getSources());
$this->media->setSources([$a = new NullMedia(1), $b = new NullMedia(2), $c = new NullMedia(3)]);
self::assertEquals([$a, $b, $c], $this->media->getSources());
}
public function testSourceAddInputOutput() : void
{
$this->media->setSources([new NullMedia(1), new NullMedia(2), new NullMedia(3)]);
$this->media->addSource(new NullMedia(4));
self::assertEquals([new NullMedia(1), new NullMedia(2), new NullMedia(3), new NullMedia(4)], $this->media->getSources());
$this->media->setSources([$a = new NullMedia(1), $b = new NullMedia(2), $c = new NullMedia(3)]);
$this->media->addSource($d = new NullMedia(4));
self::assertEquals([$a, $b, $c, $d], $this->media->getSources());
}
}

View File

@ -23,7 +23,7 @@ use Modules\Media\Models\MediaMapper;
*/
class MediaMapperTest extends \PHPUnit\Framework\TestCase
{
public function testCRUD() : void
public function testCR() : void
{
$media = new Media();
$media->setCreatedBy(new NullAccount(1));