*
* PHP version 5
*
- * Copyright © 2021-2023 The Galette Team
+ * Copyright © 2021-2024 The Galette Team
*
* This file is part of Galette (http://galette.tuxfamily.org).
*
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2021-2023 The Galette Team
+ * @copyright 2021-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since Available since 0.9.6dev - 2021-10-23
* @name Social
* @package Galette
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2021-2023 The Galette Team
+ * @copyright 2021-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since Available since 0.9.6dev - 2021-10-23
public const ICQ = 'icq';
public const WEBSITE = 'website';
public const BLOG = 'blog';
+ public const DISCORD = 'discord';
/** @var Db */
private $zdb;
self::JABBER => _T('Jabber'),
self::ICQ => _T('ICQ'),
self::WEBSITE => _T('Website'),
- self::BLOG => _T('Blog')
+ self::BLOG => _T('Blog'),
+ self::DISCORD => _T('Discord')
];
} else {
$systypes = [
self::JABBER => 'jabber',
self::ICQ => 'icq',
self::WEBSITE => 'website',
- self::BLOG => 'blog'
+ self::BLOG => 'blog',
+ self::DISCORD => 'discord'
];
}
return $systypes;
*
* PHP version 5
*
- * Copyright © 2013-2023 The Galette Team
+ * Copyright © 2013-2024 The Galette Team
*
* This file is part of Galette (http://galette.tuxfamily.org).
*
* @package GaletteTests
*
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2013-2023 The Galette Team
+ * @copyright 2013-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since 2013-10-19
* @name Preferences
* @package GaletteTests
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2013-2023 The Galette Team
+ * @copyright 2013-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since 2013-01-13
$legend = $this->preferences->getLegend();
$this->assertCount(2, $legend);
$this->assertCount(8, $legend['main']['patterns']);
- $this->assertCount(9, $legend['socials']['patterns']);
+ $this->assertCount(10, $legend['socials']['patterns']);
$this->assertSame(
[
'title' => __('Mastodon'),
$legend = $this->preferences->getLegend();
$this->assertCount(2, $legend);
- $this->assertCount(10, $legend['socials']['patterns']);
+ $this->assertCount(11, $legend['socials']['patterns']);
$this->assertTrue(isset($legend['socials']['patterns']['asso_social_mynewtype']));
$this->assertSame(
[
*
* PHP version 5
*
- * Copyright © 2021-2023 The Galette Team
+ * Copyright © 2021-2024 The Galette Team
*
* This file is part of Galette (http://galette.tuxfamily.org).
*
* @package GaletteTests
*
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2019-2023 The Galette Team
+ * @copyright 2019-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since 2021-10-26
* @name Social
* @package GaletteTests
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2021-2023 The Galette Team
+ * @copyright 2021-2024 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since 2021-10-26
public function testGetSystemTypes()
{
$social = new \Galette\Entity\Social($this->zdb);
- $this->assertCount(9, $social->getSystemTypes());
+ $this->assertCount(10, $social->getSystemTypes());
$this->assertSame($social->getSystemTypes(true), $social->getSystemTypes());
- $this->assertCount(9, $social->getSystemTypes(false));
+ $this->assertCount(10, $social->getSystemTypes(false));
$this->assertSame('Twitter', $social->getSystemType(\Galette\Entity\Social::TWITTER));
$this->assertSame('twitter', $social->getSystemType(\Galette\Entity\Social::TWITTER, false));