1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16820] Move ATTACHMENT_CATEGORY_ constants to attachment namespace

PHPBB3-16820
This commit is contained in:
Marc Alexander
2021-10-10 17:52:42 +02:00
parent ddf8e8c9d1
commit b99cfd5caa
11 changed files with 86 additions and 37 deletions

View File

@@ -11,6 +11,7 @@
*
*/
use phpbb\attachment\attachment_category;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use phpbb\console\command\thumbnail\generate;
@@ -57,8 +58,8 @@ class phpbb_console_command_thumbnail_test extends phpbb_database_test_case
$this->cache = $this->createMock('\phpbb\cache\service');
$this->cache->expects(self::any())->method('obtain_attach_extensions')->will(self::returnValue(array(
'png' => array('display_cat' => ATTACHMENT_CATEGORY_IMAGE),
'txt' => array('display_cat' => ATTACHMENT_CATEGORY_NONE),
'png' => array('display_cat' => attachment_category::IMAGE),
'txt' => array('display_cat' => attachment_category::NONE),
)));
$this->application = new Application();