Fix test output (Prevent output among phpunit tests) (#15717)

* Clear output in MigrateControllerTest::testCreateLongNamedMigration

* Clear output in FragmentCacheTest::testVariations
This commit is contained in:
André Sousa
2018-02-21 04:55:17 -03:00
committed by Dmitry Naumenko
parent 427356bfba
commit 3616dc5e74
2 changed files with 8 additions and 0 deletions

View File

@ -171,6 +171,10 @@ class MigrateControllerTest extends TestCase
public function testCreateLongNamedMigration()
{
$this->setOutputCallback(function($output) {
return null;
});
$migrationName = str_repeat('a', 180);
$this->expectException('yii\console\Exception');