Add Mount fixture and fix testing issue.

This commit is contained in:
Buster "Silver Eagle" Neece 2018-05-04 17:15:01 -05:00
parent ad312fa94e
commit e19b9be1a3
3 changed files with 10 additions and 30 deletions

View File

@ -13,7 +13,15 @@ class StationMount extends AbstractFixture implements DependentFixtureInterface
/** @var Entity\Station $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();
}
@ -22,7 +30,6 @@ class StationMount extends AbstractFixture implements DependentFixtureInterface
{
return [
Station::class,
StationPlaylist::class,
];
}
}

View File

@ -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)
{
}
}

View File

@ -40,7 +40,8 @@ coverage:
- app/src/App/Doctrine/Logger/EchoSQL.php
- app/src/App/Session/Temporary.php
- app/src/App/Console/Command/*.php
- app/src/Migration/*
- app/src/Entity/Fixture/*
- app/src/Entity/Migration/*
- app/locale/**/*
- app/locale/*
- app/templates/system/error_general.phtml