test path fixes
BIN
Files/01/24/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/02/7e/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/07/36/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/13/54/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/17/38/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/1c/88/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/2a/e4/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/31/0d/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/4e/f7/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/55/70/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/56/07/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/5d/1a/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/5e/7d/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/60/80/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/6c/d1/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/76/60/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/9e/ad/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/a4/ea/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/a9/ec/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/ab/25/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/b7/10/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/c4/6c/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/c7/fd/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/d9/0d/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/de/30/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/e0/c6/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/e3/49/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
Files/f2/c7/120cf807c0b4e4cb3843ed3661ba9239513e2e64.png
Normal file
|
After Width: | Height: | Size: 751 B |
|
|
@ -23,8 +23,6 @@ use phpOMS\Event\EventManager;
|
|||
use phpOMS\Module\ModuleManager;
|
||||
use phpOMS\Router\WebRouter;
|
||||
|
||||
require_once __DIR__ . '/../../tests/Autoloader.php';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||