Explorar el Código

tests: hide migration logs

Fabian Peter Hammerle hace 8 años
padre
commit
aab1fe8e63
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 2 0
      tests/SubjectTest.php
  2. 2 0
      tests/TestCase.php

+ 2 - 0
tests/SubjectTest.php

@@ -23,7 +23,9 @@ class SubjectTest extends TestCase
     protected function setUp()
     {
         $this->mockApplication();
+        ob_start();
         (new migrations\CreateSubjectTable)->up();
+        ob_end_clean();
 
         $this->alice = new models\User('alice');
         $this->bob = new models\User('bob');

+ 2 - 0
tests/TestCase.php

@@ -21,7 +21,9 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
             ],
         ]);
         $this->assertEquals([], $app->db->getSchema()->getTableNames());
+        ob_start();
         (new migrations\CreateUserTable)->up();
+        ob_end_clean();
         $this->assertNull($app->user->getIdentity());
         return $app;
     }