Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Setup/Version/Probe/Probe31Test.php
2015-06-15 19:30:51 +02:00

34 lines
817 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Setup\Version\Probe;
use Alchemy\Phrasea\Application;
use Alchemy\Tests\Phrasea\Setup\AbstractSetupTester;
use Alchemy\Phrasea\Setup\Version\Probe\Probe31;
/**
* @group functional
* @group legacy
*/
class Probe31Test extends AbstractSetupTester
{
public function testNoMigration()
{
$probe = $this->getProbe();
$this->assertFalse($probe->isMigrable());
}
public function testMigration()
{
$this->goBackTo31();
$probe = $this->getProbe();
$this->assertTrue($probe->isMigrable());
$this->assertInstanceOf('Alchemy\Phrasea\Setup\Version\Migration\Migration31', $probe->getMigration());
}
private function getProbe()
{
return new Probe31(new Application(Application::ENV_TEST));
}
}