repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/sources/SubsTest.php | tests/sources/SubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
/**
* TestCase class for (ideally) all the functions in the Subs.php file
* that do not fit in any othe... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/sources/FilesTestStatic.php | tests/sources/FilesTestStatic.php | <?php
use PHPUnit\Framework\TestCase;
/**
* TestCase class for file integrity
*/
class FilesTestStatic extends TestCase
{
protected $_ourFiles = [];
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run automatically by the testing f... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/PermissionsTest.php | tests/ElkArte/PermissionsTest.php | <?php
/**
* TestCase class for Permissions Class.
*/
namespace ElkArte;
use ElkArte\Helper\ValuesContainer;
use tests\ElkArteCommonSetupTest;
class PermissionsTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Load and verify default illegal permissions
*/
pub... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/EmojiTest.php | tests/ElkArte/EmojiTest.php | <?php
/**
* TestCase class for the Emoji Controller
*/
namespace ElkArte;
use ElkArte\AdminController\ManageEmojiModule;
use ElkArte\Helper\FileFunctions;
use ElkArte\Helper\HttpReq;
use tests\ElkArteCommonSetupTest;
class EmojiTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_in... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/SiteDispatcherTest.php | tests/ElkArte/SiteDispatcherTest.php | <?php
/**
* TestCase class for dispatching.
*
* The few tests here test that for the actions known to us,
* things can be found, and all expected methods exist.
* Potentially useful during refactoring, as it will fail on us and
* force to check that all expected subactions are still routed, and
* update it.
*/... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/CalendarEventTest.php | tests/ElkArte/CalendarEventTest.php | <?php
namespace ElkArte;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSetupTest;
/**
* TestCase class for the \ElkArte\CalendarEvent class.
*/
class CalendarEventTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
/**
* To avoid duplicated function declarations, ... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/BoardsTreeTest.php | tests/ElkArte/BoardsTreeTest.php | <?php
namespace ElkArte;
use tests\ElkArteCommonSetupTest;
class BoardsTreeTest extends ElkArteCommonSetupTest
{
private BoardsTree $tree;
protected function setUp(): void
{
parent::setUp();
// Instantiate using the live DB connection provided by the testbed
$this->tree = new Bo... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/EventTest.php | tests/ElkArte/EventTest.php | <?php
namespace ElkArte;
use PHPUnit\Framework\TestCase;
/**
* TestCase class for Event class.
*/
class EventTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];
public function testEmpty()
{
$event = new Event(new Priority());
// First basic: no events at the beginning
$this->as... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/ManifestMinimusTest.php | tests/ElkArte/ManifestMinimusTest.php | <?php
namespace ElkArte;
use tests\ElkArteCommonSetupTest;
/**
* Class ManifestMinimusTest
* @package ElkArte
*
* PHPUnit test case for the ElkArte\ManifestMinimus class.
*/
class ManifestMinimusTest extends ElkArteCommonSetupTest
{
/**
* The ManifestMinimus instance for testing.
*
* @var Man... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/ServerTest.php | tests/ElkArte/ServerTest.php | <?php
namespace ElkArte;
use PHPUnit\Framework\TestCase;
class ServerTest extends TestCase
{
/**
* Test that the `getProtocol()` method of the `Server` class
* correctly returns web server's protocol.
*/
public function testGetProtocol()
{
$serverData = [
'SERVER_PROTOCOL' => 'HTTP/1.1',
];
$serve... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/HooksTest.php | tests/ElkArte/HooksTest.php | <?php
/**
* TestCase class for hooks adding/removing/other stuff
* @backupGlobals disabled
*/
use PHPUnit\Framework\TestCase;
class HooksTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Name of the hook used for testing
*/
private $_hook_name = 'integrate_testing_hook';
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/RequestTest.php | tests/ElkArte/RequestTest.php | <?php
namespace ElkArte;
use PHPUnit\Framework\TestCase;
/**
* TestCase class for request parsing etc.
*
* Without SSI: test Request methods as self-containing.
*/
class RequestTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];
public $request;
/**
* Prepare what is necessary to u... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/MetadataIntegrateTest.php | tests/ElkArte/MetadataIntegrateTest.php | <?php
namespace ElkArte;
use tests\ElkArteCommonSetupTest;
class MetadataIntegrateTest extends ElkArteCommonSetupTest
{
protected function setUp(): void
{
parent::setUp();
global $boardurl, $mbname, $context, $settings;
// Minimal globals commonly used by MetadataIntegrate
$... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/AdminController/ManagePostsSettingsTest.php | tests/ElkArte/AdminController/ManagePostsSettingsTest.php | <?php
/**
* TestCase class for manage posts settings
*/
namespace ElkArte\AdminController;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ManagePostsSettingsTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info']... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/AdminController/AdminSearchTest.php | tests/ElkArte/AdminController/AdminSearchTest.php | <?php
/**
* TestCase class for the admin search
*/
namespace ElkArte\AdminController;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\SiteDispatcher;
use ElkArte\User;
use PHPUnit\Framework\TestCase;
class AdminSearchTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/AdminController/ManageMaillistTest.php | tests/ElkArte/AdminController/ManageMaillistTest.php | <?php
/**
* TestCase class for ManageMaillist controller
*/
namespace ElkArte\AdminController;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ManageMaillistTest extends ElkArteCommonSetupTest
{
protected $backupGlobals... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/AdminController/ManageBoardsSettingsTest.php | tests/ElkArte/AdminController/ManageBoardsSettingsTest.php | <?php
/**
* TestCase class for manage boards settings
*/
namespace ElkArte\AdminController;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ManageBoardsSettingsTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Packages/PackagesTest.php | tests/ElkArte/Packages/PackagesTest.php | <?php
/**
* TestCase class for the Packages & PackageServer Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\Menu\Menu;
use ... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Exceptions/ControllerRedirectExceptionTest.php | tests/ElkArte/Exceptions/ControllerRedirectExceptionTest.php | <?php
/**
* TestCase class for \ElkArte\Exceptions\ControllerRedirectException class.
*/
use ElkArte\AbstractController;
use ElkArte\Exceptions\ControllerRedirectException;
use PHPUnit\Framework\TestCase;
class ControllerRedirectExceptionTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/BBC/HtmlParserTest.php | tests/ElkArte/BBC/HtmlParserTest.php | <?php
namespace ElkArte\BBC;
use BBC\HtmlParser;
use ElkArte;
use tests\ElkArteCommonSetupTest;
class HtmlParserTest extends ElkArteCommonSetupTest
{
protected $bbcTestCases;
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run autom... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/BBC/ParserWrapperTest.php | tests/ElkArte/BBC/ParserWrapperTest.php | <?php
namespace ElkArte\BBC;
use BBC\ParserWrapper;
use BBC\PreparseCode;
use ElkArte;
use ElkArte\User;
use ElkArte\UserInfo;
use PHPUnit\Framework\TestCase;
class ParserWrapperTest extends TestCase
{
protected $bbcTestCases;
protected $bbcInvalidTestCases;
protected $bbcPreparseTestCases;
//protected $backupGl... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Http/StreamFetchWebdataTest.php | tests/ElkArte/Http/StreamFetchWebdataTest.php | <?php
namespace ElkArte\Http;
use PHPUnit\Framework\TestCase;
class StreamFetchWebdataTest extends TestCase
{
protected $fetch_testcases = [];
protected $post_testcases = [];
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run auto... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Http/FsockFetchWebdataTest.php | tests/ElkArte/Http/FsockFetchWebdataTest.php | <?php
namespace ElkArte\Http;
use PHPUnit\Framework\TestCase;
class FsockFetchWebdataTest extends TestCase
{
protected $fetch_testcases = [];
protected $post_testcases = [];
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run autom... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Http/CurlFetchWebdataTest.php | tests/ElkArte/Http/CurlFetchWebdataTest.php | <?php
/**
* TestCase class for \ElkArte\Http\CurlFetchWebdata
*/
namespace ElkArte\Http;
use PHPUnit\Framework\TestCase;
class CurlFetchWebdataTest extends TestCase
{
protected $curl_fetch_testcases = [];
protected $curl_post_testcases = [];
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepar... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Mail/MailTest.php | tests/ElkArte/Mail/MailTest.php | <?php
/**
* TestCase class for the PreparseMail and BuildMail Controllers
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Mail;
use ElkArte;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSetupTest;
class... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/CalendarTest.php | tests/ElkArte/Controller/CalendarTest.php | <?php
/**
* TestCase class for the Calendar Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSetu... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/DisplayTest.php | tests/ElkArte/Controller/DisplayTest.php | <?php
/**
* TestCase class for the Display Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/AnnounceTest.php | tests/ElkArte/Controller/AnnounceTest.php | <?php
/**
* TestCase class for the Announce Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
clas... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/OfflineTest.php | tests/ElkArte/Controller/OfflineTest.php | <?php
namespace ElkArte\Controller;
use ElkArte\EventManager;
use tests\ElkArteCommonSetupTest;
class OfflineTest extends ElkArteCommonSetupTest
{
/**
* @var Offline
*/
private $offlineController;
public function setUp(): void
{
$this->offlineController = new Offline(new EventManager... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/MarkasreadTest.php | tests/ElkArte/Controller/MarkasreadTest.php | <?php
/**
* TestCase class for the MarkRead Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\User;
use tests\E... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/RecentTest.php | tests/ElkArte/Controller/RecentTest.php | <?php
/**
* TestCase class for recent posts
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class RecentTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
/**
* In... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/BoardindexTest.php | tests/ElkArte/Controller/BoardindexTest.php | <?php
/**
* TestCase class for the BoardIndex Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
cl... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/AttachmentTest.php | tests/ElkArte/Controller/AttachmentTest.php | <?php
/**
* TestCase class for the Attachment Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSe... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/LikeTest.php | tests/ElkArte/Controller/LikeTest.php | <?php
/**
* TestCase class for the Likes Controller
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\Menu\Menu;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class LikeTest extends ElkArteCommonSetupTest
{
protected... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/DraftTest.php | tests/ElkArte/Controller/DraftTest.php | <?php
/**
* TestCase class for the Draft Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\Menu\Menu;
use Elk... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/EmailModeratorTest.php | tests/ElkArte/Controller/EmailModeratorTest.php | <?php
/**
* TestCase class for the EmailModerator Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\L... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/HelpTest.php | tests/ElkArte/Controller/HelpTest.php | <?php
/**
* TestCase class for the Help Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/MessageIndexTest.php | tests/ElkArte/Controller/MessageIndexTest.php | <?php
/**
* TestCase class for the Message Index Controller
*/
namespace ElkArte\Controller;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class MessageIndexTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
/... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/MemberListTest.php | tests/ElkArte/Controller/MemberListTest.php | <?php
/**
* TestCase class for the MemberList Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\User;
use tests... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/ModerationCenterTest.php | tests/ElkArte/Controller/ModerationCenterTest.php | <?php
/**
* TestCase class for the ModerationCenter Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/GroupsTest.php | tests/ElkArte/Controller/GroupsTest.php | <?php
/**
* TestCase class for the Groups Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
u... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/PostTest.php | tests/ElkArte/Controller/PostTest.php | <?php
/**
* TestCase class for the Post Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\Elk... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Controller/AuthTest.php | tests/ElkArte/Controller/AuthTest.php | <?php
/**
* TestCase class for the Auth Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Controller;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class Au... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Converters/MD2HTMLTest.php | tests/ElkArte/Converters/MD2HTMLTest.php | <?php
namespace ElkArte\Converters;
use Michelf\MarkdownExtra;
use PHPUnit\Framework\TestCase;
class MD2HTMLTest extends TestCase
{
protected $mdTestCases = [];
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run automatically by th... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Converters/Html2BBCTest.php | tests/ElkArte/Converters/Html2BBCTest.php | <?php
namespace ElkArte\Converters;
use PHPUnit\Framework\TestCase;
class Html2BBCTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];
public $bbcTestCases;
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run automatically by the testing framework before each t... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Converters/Html2MdTest.php | tests/ElkArte/Converters/Html2MdTest.php | <?php
namespace ElkArte\Converters;
use PHPUnit\Framework\TestCase;
class Html2MdTest extends TestCase
{
protected $mdTestCases = array();
protected $restore_txt = false;
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run automatically by the testing framework before each test method... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Attachments/TemporaryAttachmentChunkTest.php | tests/ElkArte/Attachments/TemporaryAttachmentChunkTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
namespace ElkArte\Attachments;
use tests\ElkArteCommonSetupTest;
class TemporaryAttachmentChunkTest ext... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Cache/CacheTest.php | tests/ElkArte/Cache/CacheTest.php | <?php
namespace ElkArte\Cache;
use ElkArte\Cache\CacheMethod\Apc;
use ElkArte\Cache\CacheMethod\Filebased;
use ElkArte\Cache\CacheMethod\Memcached;
use PHPUnit\Framework\TestCase;
class MockMemcached extends Memcached
{
/**
* Server array for count.
*
* @return string[]
*/
public function getNumServers()
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/SettingsForm/InlinePermissionsFormTest.php | tests/ElkArte/SettingsForm/InlinePermissionsFormTest.php | <?php
namespace ElkArte\SettingsForm;
use ElkArte\Languages\Loader;
use ElkArte\Permissions;
use ElkArte\SettingsForm\SettingsFormAdapter\InlinePermissions;
use ElkArte\User;
use ElkArte\UserInfo;
use PHPUnit\Framework\TestCase;
class InlinePermissionsFormTest extends TestCase
{
protected $permissionsForm;
protect... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/SettingsForm/SettingsFormTest.php | tests/ElkArte/SettingsForm/SettingsFormTest.php | <?php
namespace ElkArte\SettingsForm;
use ElkArte\Languages\Loader;
use ElkArte\User;
use ElkArte\UserInfo;
use PHPUnit\Framework\TestCase;
class SettingsFormTest extends TestCase
{
protected $configVars = array();
protected $permissionResults = array();
protected $configValues = array();
protected $backupGlobal... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Notifications/NotificationsTest.php | tests/ElkArte/Notifications/NotificationsTest.php | <?php
/**
* TestCase class for mention subs.
*
* WARNING. These tests work directly with the local database. Don't run
* them if you need to keep your data untouched!
*/
namespace ElkArte\Notifications;
use ElkArte\Errors\ErrorContext;
use ElkArte\Helper\DataValidator;
use ElkArte\Helper\ValuesContainer;
use El... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Menu/MenuTest.php | tests/ElkArte/Menu/MenuTest.php | <?php
namespace tests\subs;
use ElkArte\Helper\HttpReq;
use ElkArte\Menu\Menu;
use ElkArte\Menu\MenuArea;
use ElkArte\Menu\MenuSection;
use ElkArte\Menu\MenuSubsection;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
abstract class BaseMenuTest extends ElkArteCommonSetupTest
{
public function testMenu()
{
gl... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Maillist/MaillistPostTest.php | tests/ElkArte/Maillist/MaillistPostTest.php | <?php
/**
* TestCase class for the MaillistPost Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Maillist;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSe... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Maillist/EmailParseTest.php | tests/ElkArte/Maillist/EmailParseTest.php | <?php
use ElkArte\Languages\Loader;
use ElkArte\Maillist\EmailParse;
use ElkArte\User;
use ElkArte\UserInfo;
use PHPUnit\Framework\TestCase;
/**
* TestCase class for basic PBE functions
*/
class EmailParseTest extends TestCase
{
protected $_email;
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Pre... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Helper/UtilTest.php | tests/ElkArte/Helper/UtilTest.php | <?php
namespace ElkArte\Helper;
use PHPUnit\Framework\TestCase;
class UtilTest extends TestCase
{
protected $string = '';
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Prepare what is necessary to use in these tests.
*
* setUp() is run automatically by the testing framework before each test me... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Helper/UnTgzTest.php | tests/ElkArte/Helper/UnTgzTest.php | <?php
namespace ElkArte\Helper;
use PHPUnit\Framework\TestCase;
class UnTgzTest extends TestCase
{
/** @var string this is a hex value for a simple tar.gz file */
public $data = "1f8b0800000000000003edd14d0ac2301086e1597b8a5c40cddf98f354e842902ecc081e5f53bab108052188f03e8b0c4c02f9e0b3b1da51faf22fa5943643c9cbd430ef... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Helper/DataValidatorTest.php | tests/ElkArte/Helper/DataValidatorTest.php | <?php
namespace ElkArte\Helper;
use ElkArte;
use ElkArte\Languages\Loader;
use tests\ElkArteCommonSetupTest;
use tests\subs\stdClass;
class DataValidatorTest extends ElkArteCommonSetupTest
{
public $rules;
public $invalid_data;
public $valid_data;
protected $backupGlobalsExcludeList = ['user_info'];
/**
* Pr... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Helper/UnZipTest.php | tests/ElkArte/Helper/UnZipTest.php | <?php
namespace ElkArte\Helper;
use PHPUnit\Framework\TestCase;
class UnZipTest extends TestCase
{
/** @var string this is a hex value for a simple zip file */
public $data = "504b0304140000000000c96d385800000000000000000000000005000000746573742f504b03041400000000000cad37580000000000000000000000000a000000746573742... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Helper/CensoringTest.php | tests/ElkArte/Helper/CensoringTest.php | <?php
/**
* TestCase class for the censorText function
*/
namespace ElkArte\Helper;
use PHPUnit\Framework\TestCase;
class CensoringTest extends TestCase
{
protected $tests;
protected $backupGlobalsExcludeList = ['user_info'];
/**
* prepare what is necessary to use in these tests.
* setUp() is run automati... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Search/SearchTest.php | tests/ElkArte/Search/SearchTest.php | <?php
namespace ElkArte\Search;
use ElkArte\Cache\Cache;
use ElkArte\Helper\HttpReq;
use ElkArte\Helper\ValuesContainer;
use ElkArte\User;
use ElkArte\UserSettingsLoader;
use tests\ElkArteCommonSetupTest;
/**
* Class TestSearchclass
*/
class SearchTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcl... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Graphics/ImageTest.php | tests/ElkArte/Graphics/ImageTest.php | <?php
namespace ElkArte\Graphics;
use ElkArte\Graphics\Manipulators\Gd2;
use ElkArte\Graphics\Manipulators\ImageMagick;
use PHPUnit\Framework\TestCase;
class ImageTest extends TestCase
{
protected $image_testcases = array();
protected $backupGlobalsExcludeList = ['user_info'];
private array $tmp_files = [];
/**... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/UrlGenerators/UrlGeneratorTest.php | tests/ElkArte/UrlGenerators/UrlGeneratorTest.php | <?php
namespace tests\ElkArte\UrlGenerators;
use ElkArte\UrlGenerator\UrlGenerator;
use PHPUnit\Framework\TestCase;
class UrlGeneratorTest extends TestCase
{
private string $scripturl = 'http://example.com/index.php';
private function makeGenerator(string $mode): UrlGenerator
{
$gen = new UrlGen... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Errors/ErrorContextTest.php | tests/ElkArte/Errors/ErrorContextTest.php | <?php
/**
* TestCase class for ErrorContext class.
*
* Tests adding and removing errors and few other options
*/
namespace ElkArte\Errors;
use PHPUnit\Framework\TestCase;
class ErrorContextTest extends TestCase
{
protected $backupGlobalsExcludeList = ['user_info'];
public function testSimpleError()
{
$err... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/PersonalMessage/ReportTest.php | tests/ElkArte/PersonalMessage/ReportTest.php | <?php
namespace ElkArte\PersonalMessage;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\Themes\ThemeLoader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ReportTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
pr... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/PersonalMessage/LabelsTest.php | tests/ElkArte/PersonalMessage/LabelsTest.php | <?php
namespace ElkArte\PersonalMessage;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
use ElkArte\Themes\ThemeLoader;
class LabelsTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
pr... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/PersonalMessage/RulesTest.php | tests/ElkArte/PersonalMessage/RulesTest.php | <?php
namespace ElkArte\PersonalMessage;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkArte\Themes\ThemeLoader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class RulesTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_info'];
/**... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/PersonalMessage/PersonalMessageTest.php | tests/ElkArte/PersonalMessage/PersonalMessageTest.php | <?php
/**
* TestCase class for the PersonalMessage Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\PersonalMessage;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Langu... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Profile/ProfileHistoryTest.php | tests/ElkArte/Profile/ProfileHistoryTest.php | <?php
/**
* TestCase class for the ProfileAccount Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Profile;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use ElkAr... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Profile/ProfileAccountTest.php | tests/ElkArte/Profile/ProfileAccountTest.php | <?php
/**
* TestCase class for the ProfileAccount Controller
*
* WARNING. These tests work directly with the local database. Don't run
* them local if you need to keep your data untouched!
*/
namespace ElkArte\Profile;
use ElkArte\EventManager;
use ElkArte\Helper\HttpReq;
use ElkArte\Languages\Loader;
use tests... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Profile/ProfileInfoTest.php | tests/ElkArte/Profile/ProfileInfoTest.php | <?php
/**
* TestCase class for the Profile Info Controller
*/
namespace ElkArte\Profile;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ProfileInfoTest extends ElkArteCommonSetupTest
{
protected $backupGlobalsExcludeList = ['user_inf... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/ElkArte/Profile/ProfileOptionsTest.php | tests/ElkArte/Profile/ProfileOptionsTest.php | <?php
/**
* TestCase class for the Profile Options Controller
*/
namespace ElkArte\Profile;
use ElkArte;
use ElkArte\EventManager;
use ElkArte\Languages\Loader;
use ElkArte\MembersList;
use ElkArte\Menu\Menu;
use ElkArte\User;
use tests\ElkArteCommonSetupTest;
class ProfileOptionsTest extends ElkArteCommonSetupTe... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/dummies/Errors.php | tests/dummies/Errors.php | <?php
class Errors
{
public function fatal_error($msg)
{
print_r($msg);
}
public function fatal_lang_error($msg)
{
global $txt;
if (isset($txt[$msg]))
{
$msg = $txt[$msg];
}
print_r($msg);
}
public function log_error()
{
}
public static function instance()
{
return new Errors();
}
}
| php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/PollSubsTest.php | tests/subs/PollSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
/**
* TestCase class for poll subs.
*
* WARNING. These tests work directly with the local database. Do... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/LoggingSubsTest.php | tests/subs/LoggingSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use PHPUnit\Framework\TestCase;
require_once(SUBSDIR . '/Logging.subs.php');
/**
* TestCase class for ... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/PreparseSubsTest.php | tests/subs/PreparseSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\User;
use ElkArte\UserInfo;
use PHPUnit\Framework\TestCase;
class PreparseSubsTest extends T... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/AddonSettingsSubsTest.php | tests/subs/AddonSettingsSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\Languages\Loader;
use PHPUnit\Framework\TestCase;
class AddonSettingsSubsTest extends TestCa... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/Menu.subsTest.php | tests/subs/Menu.subsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use tests\ElkArteCommonSetupTest;
/**
* TestCase class for menu subs.
*/
class TestMenuSubs extends El... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/MaillistSubsTest.php | tests/subs/MaillistSubsTest.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*/
use tests\ElkArteCommonSetupTest;
class MaillistSubsTest extends ElkArteCommonSetupTest
{
protected $backu... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/DbAbstractionTest.php | tests/subs/DbAbstractionTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use PHPUnit\Framework\TestCase;
class DbAbstractionTest extends TestCase
{
protected $backupGlobalsExcl... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/MembersSubsTest.php | tests/subs/MembersSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\Errors\ErrorContext;
use PHPUnit\Framework\TestCase;
/**
* TestCase class for members subs.... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/AttachmentSubsTest.php | tests/subs/AttachmentSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\Attachments\TemporaryAttachmentProcess;
use ElkArte\Errors\AttachmentErrorContext;
use ElkArt... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/AuthSubsTest.php | tests/subs/AuthSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\Helper\Util;
use ElkArte\MembersList;
use PHPUnit\Framework\TestCase;
class AuthSubsTest ext... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/MaillistPostSubsTest.php | tests/subs/MaillistPostSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use tests\ElkArteCommonSetupTest;
class MaillistPostSubsTest extends ElkArteCommonSetupTest
{
protected... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/BoardsSubsTest.php | tests/subs/BoardsSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
/**
* TestCase class for boards subs: working with boards.
*
* WARNING. These tests work directly with... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/subs/LikeSubsTest.php | tests/subs/LikeSubsTest.php | <?php
/**
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
use ElkArte\Languages\Loader;
use PHPUnit\Framework\TestCase;
/**
* TestCase class for like subs.
*
*... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/tests/install/ElkArteInstallWeb.php | tests/install/ElkArteInstallWeb.php | <?php
/**
* Elkarte Web Testing base
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
*/
use tests\headless\ElkArteWebSupport;
/**
* ElkArteInstallWeb
*
* Installs the forum using the inst... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/index.php | themes/index.php | <?php
namespace Themes;
// This file is here solely to protect your Themes directory.
// Look for Settings.php....
if (file_exists(dirname(__FILE__, 2) . '/Settings.php'))
{
// Found it!
require(dirname(__FILE__, 2) . '/Settings.php');
header('Location: ' . $boardurl);
}
// Can't find it... just forget it.
else
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageBoards.template.php | themes/default/ManageBoards.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/Help.template.php | themes/default/Help.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageScheduledTasks.template.php | themes/default/ManageScheduledTasks.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageLanguages.template.php | themes/default/ManageLanguages.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/Admin.template.php | themes/default/Admin.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | true |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/GenericList.template.php | themes/default/GenericList.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/Stats.template.php | themes/default/Stats.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageThemes.template.php | themes/default/ManageThemes.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/CoreFeatures.template.php | themes/default/CoreFeatures.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageMembers.template.php | themes/default/ManageMembers.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/ManageMembergroups.template.php | themes/default/ManageMembergroups.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @version 2.0 Beta 1
*
*/
... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/Json.template.php | themes/default/Json.template.php | <?php
/**
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* @version 2.0 Beta 1
*
*/
/**
* Just a simple template for now to output JSON
* used to output the JSON formatted data for ajax call... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
elkarte/Elkarte | https://github.com/elkarte/Elkarte/blob/a6957006851536979c0fbe9131c5a7e36c071c61/themes/default/Theme.php | themes/default/Theme.php | <?php
/**
* The default theme
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
*
* This file contains code covered by:
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
*
* @ve... | php | BSD-3-Clause | a6957006851536979c0fbe9131c5a7e36c071c61 | 2026-01-05T03:03:27.656739Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.