mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/12683] Code review
PHPBB3-12683
This commit is contained in:
@@ -5,10 +5,10 @@ use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
|
||||
require_once __DIR__ . '/base.php';
|
||||
require_once __DIR__ . '/mock/search_backend_mock.php';
|
||||
require_once __DIR__ . '/phpbb_console_searchindex_base.php';
|
||||
require_once __DIR__ . '/../../mock/search_backend_mock.php';
|
||||
|
||||
class create_test extends base
|
||||
class phpbb_console_searchindex_create_test extends phpbb_console_searchindex_base
|
||||
{
|
||||
public function get_command_tester()
|
||||
{
|
||||
|
@@ -5,10 +5,10 @@ use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
|
||||
require_once __DIR__ . '/base.php';
|
||||
require_once __DIR__ . '/mock/search_backend_mock.php';
|
||||
require_once __DIR__ . '/phpbb_console_searchindex_base.php';
|
||||
require_once __DIR__ . '/../../mock/search_backend_mock.php';
|
||||
|
||||
class delete_test extends base
|
||||
class phpbb_console_searchindex_delete_test extends phpbb_console_searchindex_base
|
||||
{
|
||||
public function get_command_tester()
|
||||
{
|
||||
|
@@ -5,10 +5,10 @@ use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
|
||||
require_once __DIR__ . '/base.php';
|
||||
require_once __DIR__ . '/mock/search_backend_mock.php';
|
||||
require_once __DIR__ . '/phpbb_console_searchindex_base.php';
|
||||
require_once __DIR__ . '/../../mock/search_backend_mock.php';
|
||||
|
||||
class list_all_test extends base
|
||||
class phpbb_console_searchindex_list_all_test extends phpbb_console_searchindex_base
|
||||
{
|
||||
public function get_command_tester()
|
||||
{
|
||||
|
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
use phpbb\config\config;
|
||||
use phpbb\di\service_collection;
|
||||
@@ -9,9 +20,9 @@ use phpbb\search\search_backend_factory;
|
||||
use phpbb\search\state_helper;
|
||||
use phpbb\user;
|
||||
|
||||
require_once __DIR__ . '/mock/search_backend_mock.php';
|
||||
require_once __DIR__ . '/../../mock/search_backend_mock.php';
|
||||
|
||||
class base extends phpbb_test_case
|
||||
class phpbb_console_searchindex_base extends phpbb_test_case
|
||||
{
|
||||
/** @var config */
|
||||
protected $config;
|
Reference in New Issue
Block a user