mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 20:41:03 +00:00
Merge branch 'master' into 2.1
This commit is contained in:
commit
f49d9ca383
54 changed files with 133 additions and 102 deletions
|
@ -67,6 +67,6 @@ before_install:
|
||||||
script:
|
script:
|
||||||
- travis_wait bash install.sh
|
- travis_wait bash install.sh
|
||||||
- ant prepare-$DB
|
- ant prepare-$DB
|
||||||
- bin/phpunit -v
|
- phpunit -v
|
||||||
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
||||||
- if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|
- if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|
||||||
|
|
|
@ -156,7 +156,7 @@ liip_theme:
|
||||||
|
|
||||||
path_patterns:
|
path_patterns:
|
||||||
bundle_resource:
|
bundle_resource:
|
||||||
- %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
|
- "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
|
||||||
|
|
||||||
fos_user:
|
fos_user:
|
||||||
db_driver: orm
|
db_driver: orm
|
||||||
|
@ -164,9 +164,9 @@ fos_user:
|
||||||
user_class: Wallabag\UserBundle\Entity\User
|
user_class: Wallabag\UserBundle\Entity\User
|
||||||
registration:
|
registration:
|
||||||
confirmation:
|
confirmation:
|
||||||
enabled: %fosuser_confirmation%
|
enabled: "%fosuser_confirmation%"
|
||||||
from_email:
|
from_email:
|
||||||
address: %from_email%
|
address: "%from_email%"
|
||||||
sender_name: wallabag
|
sender_name: wallabag
|
||||||
fos_oauth_server:
|
fos_oauth_server:
|
||||||
db_driver: orm
|
db_driver: orm
|
||||||
|
@ -184,8 +184,8 @@ scheb_two_factor:
|
||||||
cookie_lifetime: 2592000
|
cookie_lifetime: 2592000
|
||||||
|
|
||||||
email:
|
email:
|
||||||
enabled: %twofactor_auth%
|
enabled: "%twofactor_auth%"
|
||||||
sender_email: %twofactor_sender%
|
sender_email: "%twofactor_sender%"
|
||||||
digits: 6
|
digits: 6
|
||||||
template: WallabagUserBundle:Authentication:form.html.twig
|
template: WallabagUserBundle:Authentication:form.html.twig
|
||||||
mailer: wallabag_user.auth_code_mailer
|
mailer: wallabag_user.auth_code_mailer
|
||||||
|
|
|
@ -17,14 +17,14 @@ monolog:
|
||||||
type: stream
|
type: stream
|
||||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||||
level: debug
|
level: debug
|
||||||
channels: [!event]
|
channels: ['!event']
|
||||||
console:
|
console:
|
||||||
type: console
|
type: console
|
||||||
bubble: false
|
bubble: false
|
||||||
verbosity_levels:
|
verbosity_levels:
|
||||||
VERBOSITY_VERBOSE: INFO
|
VERBOSITY_VERBOSE: INFO
|
||||||
VERBOSITY_VERY_VERBOSE: DEBUG
|
VERBOSITY_VERY_VERBOSE: DEBUG
|
||||||
channels: [!event, !doctrine]
|
channels: ['!event', '!doctrine']
|
||||||
console_very_verbose:
|
console_very_verbose:
|
||||||
type: console
|
type: console
|
||||||
bubble: false
|
bubble: false
|
||||||
|
|
|
@ -2,8 +2,8 @@ imports:
|
||||||
- { resource: config.yml }
|
- { resource: config.yml }
|
||||||
|
|
||||||
#framework:
|
#framework:
|
||||||
# validation:
|
# cache:
|
||||||
# cache: apc
|
# system: cache.adapter.apcu
|
||||||
|
|
||||||
#doctrine:
|
#doctrine:
|
||||||
# orm:
|
# orm:
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../vendor/phpunit/phpunit/phpunit
|
|
|
@ -43,7 +43,7 @@
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
"ext-tokenizer": "*",
|
"ext-tokenizer": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"symfony/symfony": "3.0.*",
|
"symfony/symfony": "3.1.*",
|
||||||
"doctrine/orm": "^2.5",
|
"doctrine/orm": "^2.5",
|
||||||
"doctrine/doctrine-bundle": "^1.6",
|
"doctrine/doctrine-bundle": "^1.6",
|
||||||
"doctrine/doctrine-cache-bundle": "^1.2",
|
"doctrine/doctrine-cache-bundle": "^1.2",
|
||||||
|
@ -85,9 +85,10 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/doctrine-fixtures-bundle": "~2.2",
|
"doctrine/doctrine-fixtures-bundle": "~2.2",
|
||||||
|
"doctrine/data-fixtures": "~1.1.1",
|
||||||
"sensio/generator-bundle": "^3.0",
|
"sensio/generator-bundle": "^3.0",
|
||||||
"phpunit/phpunit": "~4.4",
|
"phpunit/phpunit": "~4.4",
|
||||||
"symfony/phpunit-bridge": "^2.7",
|
"symfony/phpunit-bridge": "^3.0",
|
||||||
"friendsofphp/php-cs-fixer": "~1.9"
|
"friendsofphp/php-cs-fixer": "~1.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -119,6 +120,9 @@
|
||||||
"psr-4": { "Wallabag\\": "src/Wallabag/" },
|
"psr-4": { "Wallabag\\": "src/Wallabag/" },
|
||||||
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
|
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
|
||||||
},
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": { "Tests\\": "tests/" }
|
||||||
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"bin-dir": "bin"
|
"bin-dir": "bin"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,24 +1,20 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<phpunit backupGlobals="false"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
backupStaticAttributes="false"
|
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
|
||||||
|
backupGlobals="false"
|
||||||
colors="true"
|
colors="true"
|
||||||
convertErrorsToExceptions="true"
|
|
||||||
convertNoticesToExceptions="true"
|
|
||||||
convertWarningsToExceptions="true"
|
|
||||||
processIsolation="false"
|
|
||||||
stopOnFailure="false"
|
|
||||||
syntaxCheck="false"
|
|
||||||
bootstrap="app/autoload.php"
|
bootstrap="app/autoload.php"
|
||||||
>
|
>
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="wallabag Test Suite">
|
<testsuite name="wallabag Test Suite">
|
||||||
<directory>src/Wallabag/*Bundle/Tests</directory>
|
<directory>tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<php>
|
<php>
|
||||||
|
<ini name="error_reporting" value="-1" />
|
||||||
<server name="KERNEL_DIR" value="app/" />
|
<server name="KERNEL_DIR" value="app/" />
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@ class ConfigType extends AbstractType
|
||||||
$builder
|
$builder
|
||||||
->add('theme', ChoiceType::class, [
|
->add('theme', ChoiceType::class, [
|
||||||
'choices' => array_flip($this->themes),
|
'choices' => array_flip($this->themes),
|
||||||
'choices_as_values' => true,
|
|
||||||
'label' => 'config.form_settings.theme_label',
|
'label' => 'config.form_settings.theme_label',
|
||||||
])
|
])
|
||||||
->add('items_per_page', null, [
|
->add('items_per_page', null, [
|
||||||
|
@ -49,7 +48,6 @@ class ConfigType extends AbstractType
|
||||||
])
|
])
|
||||||
->add('language', ChoiceType::class, [
|
->add('language', ChoiceType::class, [
|
||||||
'choices' => array_flip($this->languages),
|
'choices' => array_flip($this->languages),
|
||||||
'choices_as_values' => true,
|
|
||||||
'label' => 'config.form_settings.language_label',
|
'label' => 'config.form_settings.language_label',
|
||||||
])
|
])
|
||||||
->add('save', SubmitType::class, [
|
->add('save', SubmitType::class, [
|
||||||
|
|
|
@ -36,17 +36,26 @@ class EntryFilterType extends AbstractType
|
||||||
$builder
|
$builder
|
||||||
->add('readingTime', NumberRangeFilterType::class, [
|
->add('readingTime', NumberRangeFilterType::class, [
|
||||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||||
$value = $values['value'];
|
$lower = $values['value']['left_number'][0];
|
||||||
|
$upper = $values['value']['right_number'][0];
|
||||||
|
|
||||||
if (null === $value['left_number'][0] || null === $value['right_number'][0]) {
|
$min = (int) ($lower * $this->user->getConfig()->getReadingSpeed());
|
||||||
|
$max = (int) ($upper * $this->user->getConfig()->getReadingSpeed());
|
||||||
|
|
||||||
|
if (null === $lower && null === $upper) {
|
||||||
|
// no value? no filter
|
||||||
return;
|
return;
|
||||||
|
} elseif (null === $lower && null !== $upper) {
|
||||||
|
// only lower value is defined: query all entries with reading LOWER THAN this value
|
||||||
|
$expression = $filterQuery->getExpr()->lte($field, $max);
|
||||||
|
} elseif (null !== $lower && null === $upper) {
|
||||||
|
// only upper value is defined: query all entries with reading GREATER THAN this value
|
||||||
|
$expression = $filterQuery->getExpr()->gte($field, $min);
|
||||||
|
} else {
|
||||||
|
// both value are defined, perform a between
|
||||||
|
$expression = $filterQuery->getExpr()->between($field, $min, $max);
|
||||||
}
|
}
|
||||||
|
|
||||||
$min = (int) ($value['left_number'][0] * $this->user->getConfig()->getReadingSpeed());
|
|
||||||
$max = (int) ($value['right_number'][0] * $this->user->getConfig()->getReadingSpeed());
|
|
||||||
|
|
||||||
$expression = $filterQuery->getExpr()->between($field, $min, $max);
|
|
||||||
|
|
||||||
return $filterQuery->createCondition($expression);
|
return $filterQuery->createCondition($expression);
|
||||||
},
|
},
|
||||||
'label' => 'entry.filters.reading_time.label',
|
'label' => 'entry.filters.reading_time.label',
|
||||||
|
@ -113,7 +122,6 @@ class EntryFilterType extends AbstractType
|
||||||
])
|
])
|
||||||
->add('language', ChoiceFilterType::class, [
|
->add('language', ChoiceFilterType::class, [
|
||||||
'choices' => array_flip($this->repository->findDistinctLanguageByUser($this->user->getId())),
|
'choices' => array_flip($this->repository->findDistinctLanguageByUser($this->user->getId())),
|
||||||
'choices_as_values' => true,
|
|
||||||
'label' => 'entry.filters.language_label',
|
'label' => 'entry.filters.language_label',
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
|
@ -268,12 +268,12 @@ quickstart:
|
||||||
tagging_rules: 'Écrivez des règles pour classer automatiquement vos articles'
|
tagging_rules: 'Écrivez des règles pour classer automatiquement vos articles'
|
||||||
admin:
|
admin:
|
||||||
title: 'Administration'
|
title: 'Administration'
|
||||||
description: "En tant qu'adminitrasteur sur wallabag, vous avez des privilèges qui vous permette de :"
|
description: "En tant qu'administrateur sur wallabag, vous avez des privilèges qui vous permettent de :"
|
||||||
new_user: 'Créer un nouvel utilisateur'
|
new_user: 'Créer un nouvel utilisateur'
|
||||||
analytics: 'Configurer les statistiques'
|
analytics: 'Configurer les statistiques'
|
||||||
sharing: 'Activer des paramètres de partages'
|
sharing: 'Activer des paramètres de partages'
|
||||||
export: 'Configurer les export'
|
export: "Configurer les formats d'export"
|
||||||
import: 'Configurer les import'
|
import: "Configurer l'import"
|
||||||
first_steps:
|
first_steps:
|
||||||
title: 'Premiers pas'
|
title: 'Premiers pas'
|
||||||
new_article: 'Ajoutez votre premier article'
|
new_article: 'Ajoutez votre premier article'
|
||||||
|
@ -289,7 +289,7 @@ quickstart:
|
||||||
create_application: 'Créer votre application tierce'
|
create_application: 'Créer votre application tierce'
|
||||||
docs:
|
docs:
|
||||||
title: 'Documentation complète'
|
title: 'Documentation complète'
|
||||||
annotate: 'Annotater votre article'
|
annotate: 'Annoter votre article'
|
||||||
export: 'Convertissez vos articles en ePub ou en PDF'
|
export: 'Convertissez vos articles en ePub ou en PDF'
|
||||||
search_filters: "Apprenez à utiliser le moteur de recherche et les filtres pour retrouver l'article qui vous intéresse"
|
search_filters: "Apprenez à utiliser le moteur de recherche et les filtres pour retrouver l'article qui vous intéresse"
|
||||||
fetching_errors: "Que faire si mon article n'est pas correctement récupéré ?"
|
fetching_errors: "Que faire si mon article n'est pas correctement récupéré ?"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\AnnotationBundle\Tests\Controller;
|
namespace Tests\AnnotationBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\AnnotationBundle\Tests\WallabagAnnotationTestCase;
|
use Tests\Wallabag\AnnotationBundle\WallabagAnnotationTestCase;
|
||||||
|
|
||||||
class AnnotationControllerTest extends WallabagAnnotationTestCase
|
class AnnotationControllerTest extends WallabagAnnotationTestCase
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\AnnotationBundle\Tests;
|
namespace Tests\Wallabag\AnnotationBundle;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use Symfony\Component\BrowserKit\Cookie;
|
use Symfony\Component\BrowserKit\Cookie;
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ApiBundle\Tests\Controller;
|
namespace Tests\Wallabag\ApiBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\ApiBundle\Tests\WallabagApiTestCase;
|
use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
|
||||||
|
|
||||||
class WallabagRestControllerTest extends WallabagApiTestCase
|
class WallabagRestControllerTest extends WallabagApiTestCase
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ApiBundle\Tests;
|
namespace Tests\Wallabag\ApiBundle;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use Symfony\Component\BrowserKit\Cookie;
|
use Symfony\Component\BrowserKit\Cookie;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Command;
|
namespace Tests\Wallabag\CoreBundle\Command;
|
||||||
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand;
|
use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand;
|
||||||
use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand;
|
use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand;
|
||||||
|
@ -9,8 +9,8 @@ use Symfony\Component\Console\Input\ArrayInput;
|
||||||
use Symfony\Component\Console\Output\NullOutput;
|
use Symfony\Component\Console\Output\NullOutput;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Wallabag\CoreBundle\Command\InstallCommand;
|
use Wallabag\CoreBundle\Command\InstallCommand;
|
||||||
use Wallabag\CoreBundle\Tests\Mock\InstallCommandMock;
|
use Tests\Wallabag\CoreBundle\Mock\InstallCommandMock;
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class InstallCommandTest extends WallabagCoreTestCase
|
class InstallCommandTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Command;
|
namespace Tests\Wallabag\CoreBundle\Command;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Wallabag\CoreBundle\Command\TagAllCommand;
|
use Wallabag\CoreBundle\Command\TagAllCommand;
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class TagAllCommandTest extends WallabagCoreTestCase
|
class TagAllCommandTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class ConfigControllerTest extends WallabagCoreTestCase
|
class ConfigControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class DeveloperControllerTest extends WallabagCoreTestCase
|
class DeveloperControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
|
|
||||||
class EntryControllerTest extends WallabagCoreTestCase
|
class EntryControllerTest extends WallabagCoreTestCase
|
||||||
|
@ -499,6 +499,42 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||||
$this->assertCount(1, $crawler->filter('div[class=entry]'));
|
$this->assertCount(1, $crawler->filter('div[class=entry]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testFilterOnReadingTimeOnlyUpper()
|
||||||
|
{
|
||||||
|
$this->logInAs('admin');
|
||||||
|
$client = $this->getClient();
|
||||||
|
|
||||||
|
$crawler = $client->request('GET', '/unread/list');
|
||||||
|
|
||||||
|
$form = $crawler->filter('button[id=submit-filter]')->form();
|
||||||
|
|
||||||
|
$data = [
|
||||||
|
'entry_filter[readingTime][right_number]' => 22,
|
||||||
|
];
|
||||||
|
|
||||||
|
$crawler = $client->submit($form, $data);
|
||||||
|
|
||||||
|
$this->assertCount(2, $crawler->filter('div[class=entry]'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testFilterOnReadingTimeOnlyLower()
|
||||||
|
{
|
||||||
|
$this->logInAs('admin');
|
||||||
|
$client = $this->getClient();
|
||||||
|
|
||||||
|
$crawler = $client->request('GET', '/unread/list');
|
||||||
|
|
||||||
|
$form = $crawler->filter('button[id=submit-filter]')->form();
|
||||||
|
|
||||||
|
$data = [
|
||||||
|
'entry_filter[readingTime][left_number]' => 22,
|
||||||
|
];
|
||||||
|
|
||||||
|
$crawler = $client->submit($form, $data);
|
||||||
|
|
||||||
|
$this->assertCount(4, $crawler->filter('div[class=entry]'));
|
||||||
|
}
|
||||||
|
|
||||||
public function testFilterOnUnreadStatus()
|
public function testFilterOnUnreadStatus()
|
||||||
{
|
{
|
||||||
$this->logInAs('admin');
|
$this->logInAs('admin');
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class ExportControllerTest extends WallabagCoreTestCase
|
class ExportControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class RssControllerTest extends WallabagCoreTestCase
|
class RssControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class SecurityControllerTest extends WallabagCoreTestCase
|
class SecurityControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The controller `SettingsController` does not exist.
|
* The controller `SettingsController` does not exist.
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class StaticControllerTest extends WallabagCoreTestCase
|
class StaticControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Tests\Wallabag\CoreBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class TagControllerTest extends WallabagCoreTestCase
|
class TagControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\EventListener;
|
namespace Tests\Wallabag\CoreBundle\EventListener;
|
||||||
|
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\EventListener;
|
namespace Tests\Wallabag\CoreBundle\EventListener;
|
||||||
|
|
||||||
use FOS\UserBundle\Event\FilterUserResponseEvent;
|
use FOS\UserBundle\Event\FilterUserResponseEvent;
|
||||||
use FOS\UserBundle\FOSUserEvents;
|
use FOS\UserBundle\FOSUserEvents;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\EventListener;
|
namespace Tests\Wallabag\CoreBundle\EventListener;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Session\Session;
|
use Symfony\Component\HttpFoundation\Session\Session;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Form\DataTransformer;
|
namespace Tests\Wallabag\CoreBundle\Form\DataTransformer;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer;
|
use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Helper;
|
namespace Tests\Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
use Psr\Log\NullLogger;
|
use Psr\Log\NullLogger;
|
||||||
use Wallabag\CoreBundle\Helper\ContentProxy;
|
use Wallabag\CoreBundle\Helper\ContentProxy;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Helper;
|
namespace Tests\Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Helper\Redirect;
|
use Wallabag\CoreBundle\Helper\Redirect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Helper;
|
namespace Tests\Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Entity\Config;
|
use Wallabag\CoreBundle\Entity\Config;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Mock;
|
namespace Tests\Wallabag\CoreBundle\Mock;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Command\InstallCommand;
|
use Wallabag\CoreBundle\Command\InstallCommand;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Command;
|
namespace Tests\Wallabag\CoreBundle\Command;
|
||||||
|
|
||||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Subscriber;
|
namespace Tests\Wallabag\CoreBundle\Subscriber;
|
||||||
|
|
||||||
use Doctrine\Common\EventManager;
|
use Doctrine\Common\EventManager;
|
||||||
use Doctrine\ORM\Event\LoadClassMetadataEventArgs;
|
use Doctrine\ORM\Event\LoadClassMetadataEventArgs;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests\Twig;
|
namespace Tests\Wallabag\CoreBundle\Twig;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Twig\WallabagExtension;
|
use Wallabag\CoreBundle\Twig\WallabagExtension;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Tests;
|
namespace Tests\Wallabag\CoreBundle;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Controller;
|
namespace Tests\Wallabag\ImportBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class ImportControllerTest extends WallabagCoreTestCase
|
class ImportControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Controller;
|
namespace Tests\Wallabag\ImportBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
|
|
||||||
class PocketControllerTest extends WallabagCoreTestCase
|
class PocketControllerTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Controller;
|
namespace Tests\Wallabag\ImportBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
class WallabagV1ControllerTest extends WallabagCoreTestCase
|
class WallabagV1ControllerTest extends WallabagCoreTestCase
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Controller;
|
namespace Tests\Wallabag\ImportBundle\Controller;
|
||||||
|
|
||||||
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
class WallabagV2ControllerTest extends WallabagCoreTestCase
|
class WallabagV2ControllerTest extends WallabagCoreTestCase
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Import;
|
namespace Tests\Wallabag\ImportBundle\Import;
|
||||||
|
|
||||||
use Wallabag\ImportBundle\Import\ImportChain;
|
use Wallabag\ImportBundle\Import\ImportChain;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Import;
|
namespace Tests\Wallabag\ImportBundle\Import;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Wallabag\ImportBundle\Import\ImportCompilerPass;
|
use Wallabag\ImportBundle\Import\ImportCompilerPass;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Import;
|
namespace Tests\Wallabag\ImportBundle\Import;
|
||||||
|
|
||||||
use Wallabag\UserBundle\Entity\User;
|
use Wallabag\UserBundle\Entity\User;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Import;
|
namespace Tests\Wallabag\ImportBundle\Import;
|
||||||
|
|
||||||
use Wallabag\ImportBundle\Import\WallabagV1Import;
|
use Wallabag\ImportBundle\Import\WallabagV1Import;
|
||||||
use Wallabag\UserBundle\Entity\User;
|
use Wallabag\UserBundle\Entity\User;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\ImportBundle\Tests\Import;
|
namespace Tests\Wallabag\ImportBundle\Import;
|
||||||
|
|
||||||
use Wallabag\ImportBundle\Import\WallabagV2Import;
|
use Wallabag\ImportBundle\Import\WallabagV2Import;
|
||||||
use Wallabag\UserBundle\Entity\User;
|
use Wallabag\UserBundle\Entity\User;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\UserBundle\Tests\Mailer;
|
namespace Tests\Wallabag\UserBundle\Mailer;
|
||||||
|
|
||||||
use Wallabag\UserBundle\Entity\User;
|
use Wallabag\UserBundle\Entity\User;
|
||||||
use Wallabag\UserBundle\Mailer\AuthCodeMailer;
|
use Wallabag\UserBundle\Mailer\AuthCodeMailer;
|
10
web/app.php
10
web/app.php
|
@ -8,16 +8,6 @@ use Symfony\Component\HttpFoundation\Request;
|
||||||
$loader = require __DIR__.'/../app/autoload.php';
|
$loader = require __DIR__.'/../app/autoload.php';
|
||||||
include_once __DIR__.'/../var/bootstrap.php.cache';
|
include_once __DIR__.'/../var/bootstrap.php.cache';
|
||||||
|
|
||||||
// Enable APC for autoloading to improve performance.
|
|
||||||
// You should change the ApcClassLoader first argument to a unique prefix
|
|
||||||
// in order to prevent cache key conflicts with other applications
|
|
||||||
// also using APC.
|
|
||||||
/*
|
|
||||||
$apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
|
|
||||||
$loader->unregister();
|
|
||||||
$apcLoader->register(true);
|
|
||||||
*/
|
|
||||||
|
|
||||||
$kernel = new AppKernel('prod', false);
|
$kernel = new AppKernel('prod', false);
|
||||||
$kernel->loadClassCache();
|
$kernel->loadClassCache();
|
||||||
//$kernel = new AppCache($kernel);
|
//$kernel = new AppCache($kernel);
|
||||||
|
|
Loading…
Reference in a new issue