Add Mount fixture and fix testing issue.
This commit is contained in:
parent
ad312fa94e
commit
e19b9be1a3
|
@ -13,7 +13,15 @@ class StationMount extends AbstractFixture implements DependentFixtureInterface
|
||||||
/** @var Entity\Station $station */
|
/** @var Entity\Station $station */
|
||||||
$station = $this->getReference('station');
|
$station = $this->getReference('station');
|
||||||
|
|
||||||
|
$mount_radio = new Entity\StationMount($station);
|
||||||
|
$mount_radio->setName('/radio.mp3');
|
||||||
|
$mount_radio->setIsDefault(true);
|
||||||
|
$em->persist($mount_radio);
|
||||||
|
|
||||||
|
$mount_mobile = new Entity\StationMount($station);
|
||||||
|
$mount_mobile->setName('/mobile.mp3');
|
||||||
|
$mount_mobile->setAutodjBitrate(64);
|
||||||
|
$em->persist($mount_mobile);
|
||||||
|
|
||||||
$em->flush();
|
$em->flush();
|
||||||
}
|
}
|
||||||
|
@ -22,7 +30,6 @@ class StationMount extends AbstractFixture implements DependentFixtureInterface
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Station::class,
|
Station::class,
|
||||||
StationPlaylist::class,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,28 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Entity\Migration;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
class Version20170803050109 extends AbstractMigration
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param Schema $schema
|
|
||||||
*/
|
|
||||||
public function up(Schema $schema)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Schema $schema
|
|
||||||
*/
|
|
||||||
public function down(Schema $schema)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -40,7 +40,8 @@ coverage:
|
||||||
- app/src/App/Doctrine/Logger/EchoSQL.php
|
- app/src/App/Doctrine/Logger/EchoSQL.php
|
||||||
- app/src/App/Session/Temporary.php
|
- app/src/App/Session/Temporary.php
|
||||||
- app/src/App/Console/Command/*.php
|
- app/src/App/Console/Command/*.php
|
||||||
- app/src/Migration/*
|
- app/src/Entity/Fixture/*
|
||||||
|
- app/src/Entity/Migration/*
|
||||||
- app/locale/**/*
|
- app/locale/**/*
|
||||||
- app/locale/*
|
- app/locale/*
|
||||||
- app/templates/system/error_general.phtml
|
- app/templates/system/error_general.phtml
|
||||||
|
|
Loading…
Reference in New Issue