aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2018-11-28 20:26:18 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2018-11-28 22:04:55 +0100
commit877787e5fe6a6545105616968939949b4db81347 (patch)
treedc7d2ecf643f9c28b75e4fdb5efc121dcafe3536 /tests/Wallabag
parent9a8a1bdfdbc87047bffb457370e04ef58a24495c (diff)
downloadwallabag-877787e5fe6a6545105616968939949b4db81347.tar.gz
wallabag-877787e5fe6a6545105616968939949b4db81347.tar.zst
wallabag-877787e5fe6a6545105616968939949b4db81347.zip
Fix utf8mb4 on vendor tables
When creating the schema for test these tables use default length for string: 255. Which fail when using utf8mb4. > Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes Also move the `setKeepStaticConnections` in before and after class to avoid: > SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Command/InstallCommandTest.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
index 08685408..d8928451 100644
--- a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
@@ -18,6 +18,18 @@ use Wallabag\CoreBundle\Command\InstallCommand;
18 18
19class InstallCommandTest extends WallabagCoreTestCase 19class InstallCommandTest extends WallabagCoreTestCase
20{ 20{
21 public static function setUpBeforeClass()
22 {
23 // disable doctrine-test-bundle
24 StaticDriver::setKeepStaticConnections(false);
25 }
26
27 public static function tearDownAfterClass()
28 {
29 // enable doctrine-test-bundle
30 StaticDriver::setKeepStaticConnections(true);
31 }
32
21 public function setUp() 33 public function setUp()
22 { 34 {
23 parent::setUp(); 35 parent::setUp();
@@ -51,9 +63,6 @@ class InstallCommandTest extends WallabagCoreTestCase
51 parent::setUp(); 63 parent::setUp();
52 } 64 }
53 65
54 // disable doctrine-test-bundle
55 StaticDriver::setKeepStaticConnections(false);
56
57 $this->resetDatabase($this->getClient()); 66 $this->resetDatabase($this->getClient());
58 } 67 }
59 68
@@ -72,8 +81,6 @@ class InstallCommandTest extends WallabagCoreTestCase
72 $this->resetDatabase($client); 81 $this->resetDatabase($client);
73 } 82 }
74 83
75 // enable doctrine-test-bundle
76 StaticDriver::setKeepStaticConnections(true);
77 parent::tearDown(); 84 parent::tearDown();
78 } 85 }
79 86