mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Initial Rector fixes with basic configuration
This commit is contained in:
parent
a679117736
commit
84eb99c59b
5 changed files with 90 additions and 42 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Tests\Wallabag;
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Predis\Client;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
|
@ -118,7 +119,7 @@ abstract class WallabagTestCase extends WebTestCase
|
|||
protected function checkRedis()
|
||||
{
|
||||
try {
|
||||
$this->client->getContainer()->get(\Predis\Client::class)->connect();
|
||||
$this->client->getContainer()->get(Client::class)->connect();
|
||||
} catch (\Exception $e) {
|
||||
$this->markTestSkipped('Redis is not installed/activated');
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ if (!isPartialRun()) {
|
|||
'--force',
|
||||
'--env=test',
|
||||
'--no-debug',
|
||||
]))->run(function ($type, $buffer) {
|
||||
]))->run(function ($type, $buffer): void {
|
||||
echo $buffer;
|
||||
});
|
||||
|
||||
|
@ -25,7 +25,7 @@ if (!isPartialRun()) {
|
|||
'doctrine:database:create',
|
||||
'--env=test',
|
||||
'--no-debug',
|
||||
]))->mustRun(function ($type, $buffer) {
|
||||
]))->mustRun(function ($type, $buffer): void {
|
||||
echo $buffer;
|
||||
});
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (!isPartialRun()) {
|
|||
'--env=test',
|
||||
'--no-debug',
|
||||
'-vv',
|
||||
]))->mustRun(function ($type, $buffer) {
|
||||
]))->mustRun(function ($type, $buffer): void {
|
||||
echo $buffer;
|
||||
});
|
||||
|
||||
|
@ -48,7 +48,7 @@ if (!isPartialRun()) {
|
|||
'--no-interaction',
|
||||
'--env=test',
|
||||
'-v',
|
||||
]))->mustRun(function ($type, $buffer) {
|
||||
]))->mustRun(function ($type, $buffer): void {
|
||||
echo $buffer;
|
||||
});
|
||||
}
|
||||
|
@ -60,6 +60,6 @@ if (!isPartialRun()) {
|
|||
'--no-interaction',
|
||||
'--env=test',
|
||||
'--no-debug',
|
||||
]))->mustRun(function ($type, $buffer) {
|
||||
]))->mustRun(function ($type, $buffer): void {
|
||||
echo $buffer;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue