1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 17:04:03 +00:00

Travis should be failing

This commit is contained in:
Samuel Štancl 2019-08-14 17:19:45 +02:00
parent abda76a0f5
commit 99bc2a1d80
2 changed files with 10 additions and 1 deletions

View file

@ -41,6 +41,10 @@ trait BootstrapsTenancy
public function end()
{
// array_map(function ($listener) {
// $listener($this);
// }, $this->listeners['ending']);
$this->initialized = false;
$this->disconnectDatabase();
@ -49,6 +53,10 @@ trait BootstrapsTenancy
}
$this->untagCache();
$this->resetFileSystemRootPaths();
array_map(function ($listener) {
$listener($this);
}, $this->listeners['ended']);
}
public function switchDatabaseConnection()

3
test
View file

@ -1,4 +1,5 @@
#!/bin/bash
set -e
# for development
docker-compose up -d
@ -6,4 +7,4 @@ printf "Variant 1\n\n"
TENANCY_TEST_REDIS_TENANCY=1 TENANCY_TEST_REDIS_CLIENT=phpredis docker-compose exec test vendor/bin/phpunit --coverage-php coverage/1.cov "$@"
printf "Variant 2\n\n"
TENANCY_TEST_REDIS_TENANCY=0 TENANCY_TEST_REDIS_CLIENT=predis docker-compose exec test vendor/bin/phpunit --coverage-php coverage/2.cov "$@"
docker-compose exec test vendor/bin/phpcov merge --clover clover.xml coverage/
docker-compose exec test vendor/bin/phpcov merge --clover clover.xml coverage/