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 |
|---|---|---|---|---|---|---|---|---|
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/Fixtures/RelatedEntitiesData.php | tests/Fixtures/RelatedEntitiesData.php | <?php
namespace Tests\Fixtures;
use AppBundle\Entity\Author;
use AppBundle\Entity\Edition;
use AppBundle\Entity\Environment;
use AppBundle\Entity\Item;
use AppBundle\Entity\Monster;
use AppBundle\Entity\Publisher;
use AppBundle\Entity\Setting;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Pers... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/Fixtures/CurationData.php | tests/Fixtures/CurationData.php | <?php
namespace Tests\Fixtures;
use AppBundle\Entity\Adventure;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;
class CurationData extends AbstractFixture
{
public function load(ObjectManager $em)
{
$adventure = new Adventure();
$adventure->set... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/Fixtures/CuratedDomainUserData.php | tests/Fixtures/CuratedDomainUserData.php | <?php
namespace Tests\Fixtures;
use AppBundle\Entity\User;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;
class CuratedDomainUserData extends AbstractFixture
{
public function load(ObjectManager $em)
{
$user = new User();
$user->setUsername('c... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/Browser/NewAdventureTest.php | tests/Browser/NewAdventureTest.php | <?php
namespace Tests;
use Behat\Mink\Session;
use Tests\Fixtures\RelatedEntitiesData;
use Tests\Fixtures\UserData;
class NewAdventureTest extends BrowserTestCase
{
const TITLE = 'My greatest Adventure';
const SLUG = 'my-greatest-adventure';
const DESCRIPTION = 'A description.';
const AUTHORS = ['Jon... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/AppBundleTest.php | tests/AppBundle/AppBundleTest.php | <?php
namespace Tests\AppBundle;
use AppBundle\AppBundle;
use PHPUnit\Framework\TestCase;
class AppBundleTest extends TestCase
{
public function testTruncate()
{
$str = '🔥🔥🔥';
$this->assertEquals('🔥🔥🔥', AppBundle::truncate($str, 3));
$str = '🔥🔥🔥';
$this->assertEquals... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Entity/AdventureTest.php | tests/AppBundle/Entity/AdventureTest.php | <?php
namespace Tests\AppBundle\Entity;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\ChangeRequest;
use AppBundle\Entity\Edition;
use AppBundle\Entity\Monster;
use AppBundle\Entity\Publisher;
use AppBundle\Entity\Setting;
use Doctrine\Common\Collections\ArrayCollection;
use PHPUnit\Framework\TestCase;
class ... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Entity/ReviewTest.php | tests/AppBundle/Entity/ReviewTest.php | <?php
namespace Tests\AppBundle\Entity;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\Review;
use PHPUnit\Framework\TestCase;
class ReviewTest extends TestCase
{
public function testGetAdventure()
{
$adventure = new Adventure();
$review = new Review($adventure);
$this->assertS... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/ProfileControllerTest.php | tests/AppBundle/Controller/ProfileControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\ChangeRequest;
use AppBundle\Entity\Review;
use AppBundle\Entity\User;
use Behat\Mink\Element\DocumentElement;
use Behat\Mink\Session;
use Tests\Fixtures\ProfileTestData;
use Tests\WebTestCase;
class ProfileControllerTes... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/DefaultControllerTest.php | tests/AppBundle/Controller/DefaultControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Tests\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$this->loadFixtures([]);
$session = $this->makeSession();
$session->visit('/');
$this->assertPath($session, '/adventures');
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/CurationControllerTest.php | tests/AppBundle/Controller/CurationControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Tests\Fixtures\CuratedDomainUserData;
use Tests\Fixtures\CurationData;
use Tests\WebTestCase;
class CurationControllerTest extends WebTestCase
{
public function testLinkList()
{
$this->loadFixtures([CurationData::class, CuratedDomainUserData::class]);
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/AdventureListControllerTest.php | tests/AppBundle/Controller/AdventureListControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\Adventure;
use Tests\Fixtures\AdventureData;
use Tests\WebTestCase;
class AdventureListControllerTest extends WebTestCase
{
public function testNewAdventureList()
{
$referenceRepository = $this->loadFixtures([AdventureData::class])->get... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/ApiControllerTest.php | tests/AppBundle/Controller/ApiControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\Adventure;
use Tests\Fixtures\AdventureData;
use Tests\WebTestCase;
class ApiControllerTest extends WebTestCase
{
public function testIndexAction()
{
$this->loadFixtures([AdventureData::class]);
$session = $this->makeSession();... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/AdventureControllerTest.php | tests/AppBundle/Controller/AdventureControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\Adventure;
use Tests\Fixtures\AdventureData;
use Tests\WebTestCase;
class AdventureControllerTest extends WebTestCase
{
const LOGIN_URL = '/login';
public function testRedirect()
{
$session = $this->makeSession();
$session-... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/ReviewControllerTest.php | tests/AppBundle/Controller/ReviewControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\Review;
use Tests\Fixtures\AdventureData;
use Tests\WebTestCase;
class ReviewControllerTest extends WebTestCase
{
const REVIEW_TEXT = 'Hello World! This is my amazing review.';
const REVIEW_TEXT_2 = 'This is another review text.';
/**
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/SecurityControllerTest.php | tests/AppBundle/Controller/SecurityControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Behat\Mink\Element\DocumentElement;
use Behat\Mink\Session;
use Tests\Fixtures\UserData;
use Tests\WebTestCase;
class SecurityControllerTest extends WebTestCase
{
/**
* @dataProvider invalidLoginProvider
*/
public function testLoginWithInvalidCredenti... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/CuratedDomainControllerTest.php | tests/AppBundle/Controller/CuratedDomainControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Tests\Fixtures\CuratedDomainUserData;
use Tests\WebTestCase;
class CuratedDomainControllerTest extends WebTestCase
{
public function testAll()
{
$this->loadFixtures([CuratedDomainUserData::class]);
$session = $this->makeSession([
'us... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/RegistrationControllerTest.php | tests/AppBundle/Controller/RegistrationControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Behat\Mink\Element\DocumentElement;
use Behat\Mink\Session;
use Tests\Fixtures\UserData;
use Tests\WebTestCase;
class RegistrationControllerTest extends WebTestCase
{
public function testRegistrationWithValidData()
{
$username = 'cmfcmf';
$email... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/PasswordResetControllerTest.php | tests/AppBundle/Controller/PasswordResetControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use AppBundle\Entity\User;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector;
use Tests\Fixtures\UserData;
use Tests\WebTestCase;
class PasswordResetControllerTest extends WebTestCase
{
const USERNAME = '... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Controller/InternalApiControllerTest.php | tests/AppBundle/Controller/InternalApiControllerTest.php | <?php
namespace Tests\AppBundle\Controller;
use Tests\Fixtures\SimilarTitlesData;
use Tests\WebTestCase;
class InternalApiControllerTest extends WebTestCase
{
const ADVENTURE_NATURE = [
'id' => 1,
'title' => 'nature',
'slug' => 'nature',
];
const ADVENTURE_NATURE_ANIMAL = [
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Twig/AppExtensionTest.php | tests/AppBundle/Twig/AppExtensionTest.php | <?php
declare(strict_types=1);
namespace Tests\Twig;
use AppBundle\Service\AffiliateLinkHandler;
use AppBundle\Entity\User;
use AppBundle\Twig\AppExtension;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Simple\FilesystemCache;
use Symfony\Component\Security\Core\Role\RoleHierarchy;
class AppExtensionT... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Curation/BulkEditFormProviderTest.php | tests/AppBundle/Curation/BulkEditFormProviderTest.php | <?php
namespace Tests\AppBundle\Curation;
use AppBundle\Curation\BulkEditFormProvider;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\Monster;
use AppBundle\Field\Field;
use AppBundle\Field\FieldProvider;
use AppBundle\Repository\AdventureRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Curation/BulkEditFormHandlerTest.php | tests/AppBundle/Curation/BulkEditFormHandlerTest.php | <?php
namespace Tests\AppBundle\Curation;
use AppBundle\Curation\BulkEditFormHandler;
use AppBundle\Curation\BulkEditFormProvider;
use AppBundle\Entity\Adventure;
use AppBundle\Field\Field;
use AppBundle\Repository\AdventureRepository;
use Doctrine\ORM\EntityManagerInterface;
use PHPUnit\Framework\MockObject\MockObje... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Exception/FieldDoesNotExistExceptionTest.php | tests/AppBundle/Exception/FieldDoesNotExistExceptionTest.php | <?php
namespace Tests\AppBundle\Exception;
use AppBundle\Exception\FieldDoesNotExistException;
use PHPUnit\Framework\TestCase;
class FieldDoesNotExistExceptionTest extends TestCase
{
public function testIsRuntimeException()
{
$this->expectException(\RuntimeException::class);
$this->expectExce... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/DataFixtures/TestFixturesLoadable.php | tests/AppBundle/DataFixtures/TestFixturesLoadable.php | <?php
namespace Tests\AppBundle\DataFixtures;
use AppBundle\DataFixtures\ORM\RandomAdventureData;
use AppBundle\DataFixtures\ORM\TestUserData;
use Tests\WebTestCase;
/**
* Test whether the fixtures can be loaded.
* Note: This will not generate code coverage, because the LiipFunctionalTestBundle
* is smart and cac... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Validator/Constraints/IsUrlAllowedValidatorTest.php | tests/AppBundle/Validator/Constraints/IsUrlAllowedValidatorTest.php | <?php
namespace Tests\AppBundle\Validator\Constraints;
use AppBundle\Entity\CuratedDomain;
use AppBundle\Validator\Constraints\IsUrlAllowed;
use AppBundle\Validator\Constraints\IsUrlAllowedValidator;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Validator\Test\Const... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Repository/ChangeRequestRepositoryTest.php | tests/AppBundle/Repository/ChangeRequestRepositoryTest.php | <?php
namespace Tests\AppBundle\Repository;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\ChangeRequest;
use AppBundle\Repository\ChangeRequestRepository;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\Query;
use Tests\WebTestCase;
class Chang... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Repository/RelatedEntityFieldValueCountsTraitTest.php | tests/AppBundle/Repository/RelatedEntityFieldValueCountsTraitTest.php | <?php
namespace Tests\AppBundle\Repository;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\Author;
use AppBundle\Repository\RelatedEntityFieldValueCountsTrait;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;
use Te... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Repository/AdventureRepositoryTest.php | tests/AppBundle/Repository/AdventureRepositoryTest.php | <?php
namespace Tests\AppBundle\Repository;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\Author;
use AppBundle\Entity\ChangeRequest;
use AppBundle\Entity\Monster;
use AppBundle\Entity\Publisher;
use AppBundle\Entity\RelatedEntityInterface;
use AppBundle\Field\Field;
use AppBundle\Repository\AdventureRepositor... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Field/FieldTest.php | tests/AppBundle/Field/FieldTest.php | <?php
namespace Tests\AppBundle\Field;
use AppBundle\Field\Field;
use PHPUnit\Framework\TestCase;
class FieldTest extends TestCase
{
const NAME = 'field name';
const TYPE = 'field type';
const MULTIPLE = false;
const SEARCHABLE = false;
const FILTERABLE = false;
const TITLE = 'Field Title';
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Field/FieldProviderTest.php | tests/AppBundle/Field/FieldProviderTest.php | <?php
namespace Tests\AppBundle\Field;
use AppBundle\Exception\FieldDoesNotExistException;
use AppBundle\Field\FieldProvider;
use Doctrine\Common\Collections\Collection;
use PHPUnit\Framework\TestCase;
class FieldProviderTest extends TestCase
{
/**
* @var FieldProvider
*/
private $fieldProvider;
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Security/ReviewVoterTest.php | tests/AppBundle/Security/ReviewVoterTest.php | <?php
namespace Tests\AppBundle\Security;
use AppBundle\Entity\Review;
use AppBundle\Security\ReviewVoter;
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
class ReviewVoterTest extends VoterTest
{
const LIST_ATTRIBUTE = 'list';
const CREATE_ATTRIBUTE = 'create';
/**
* @var R... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Security/AdventureListVoterTest.php | tests/AppBundle/Security/AdventureListVoterTest.php | <?php
namespace Tests\AppBundle\Security;
use AppBundle\Entity\AdventureList;
use AppBundle\Entity\User;
use AppBundle\Security\AdventureListVoter;
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
class AdventureListVoterTest extends VoterTest
{
const TOKEN_SECRET = '123';
const LIST_A... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Security/VoterTest.php | tests/AppBundle/Security/VoterTest.php | <?php
namespace Tests\AppBundle\Security;
use AppBundle\Entity\User;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Secu... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/ElasticSearchTest.php | tests/AppBundle/Service/ElasticSearchTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Service\ElasticSearch;
use Elasticsearch\Client;
use Elasticsearch\ClientBuilder;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
class ElasticSearchTest extends TestCase
{
const HOST = 'localhost:9200';
const INDEX_NAME = 'some_index';
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/AdventureSerializerTest.php | tests/AppBundle/Service/AdventureSerializerTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\Author;
use AppBundle\Entity\Edition;
use AppBundle\Entity\Publisher;
use AppBundle\Field\Field;
use AppBundle\Field\FieldProvider;
use AppBundle\Service\AdventureSerializer;
use Doctrine\Common\Collections\ArrayCollection;
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/AdventureSearchTest.php | tests/AppBundle/Service/AdventureSearchTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Field\Field;
use AppBundle\Field\FieldProvider;
use AppBundle\Service\AdventureSearch;
use AppBundle\Service\ElasticSearch;
use AppBundle\Service\TimeProvider;
use Doctrine\Common\Collections\ArrayCollection;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUn... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/SerializerTest.php | tests/AppBundle/Service/SerializerTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\AdventureDocument;
use AppBundle\Entity\ChangeRequest;
use AppBundle\Entity\Review;
use AppBundle\Service\Serializer;
use PHPUnit\Framework\TestCase;
class SerializerTest extends TestCase
{
/**
* @var Serializer
... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/AffiliateLinkHandlerTest.php | tests/AppBundle/Service/AffiliateLinkHandlerTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Service\AffiliateLinkHandler;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Simple\FilesystemCache;
class AffiliateLinkHandlerTest extends TestCase
{
/**
* @var AffiliateLinkHandler
*/
private $affiliateLinkHandler;
public fu... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/MetaTagsTest.php | tests/AppBundle/Service/MetaTagsTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Entity\Adventure;
use AppBundle\Service\MetaTags;
use Leogout\Bundle\SeoBundle\Provider\SeoGeneratorProvider;
use Leogout\Bundle\SeoBundle\Seo\Basic\BasicSeoGenerator;
use PHPUnit\Framework\TestCase;
class MetaTagsTest extends TestCase
{
public function test... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/TimeProviderTest.php | tests/AppBundle/Service/TimeProviderTest.php | <?php
namespace Tests\AppBundle\Service;
use AppBundle\Service\TimeProvider;
use PHPUnit\Framework\TestCase;
class TimeProviderTest extends TestCase
{
public function testMillis()
{
$timeProvider = new TimeProvider();
$now = time() * 1000;
$result = $timeProvider->millis();
$... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/tests/AppBundle/Service/SafeMarkdownParserTest.php | tests/AppBundle/Service/SafeMarkdownParserTest.php | <?php
declare(strict_types=1);
namespace Tests\Service;
use AppBundle\Service\SafeMarkdownParser;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
class SafeMarkdownParserTest extends TestCase
{
/**
* @dataProvider externalLink... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/web/app.php | web/app.php | <?php
use Symfony\Component\HttpFoundation\Request;
/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../app/autoload.php';
include_once __DIR__.'/../var/bootstrap.php.cache';
$kernel = new AppKernel('prod', false);
//$kernel = new AppCache($kernel);
// When using the HttpCache, you nee... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/web/app_heroku.php | web/app_heroku.php | <?php
use Symfony\Component\HttpFoundation\Request;
if ($_ENV['SYMFONY_ENV'] != "heroku") {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/.... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/web/app_test.php | web/app_test.php | <?php
use Symfony\Component\HttpFoundation\Request;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
//umask(0000);
// This check prevents acce... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
AdventureLookup/AdventureLookup | https://github.com/AdventureLookup/AdventureLookup/blob/3853b3e980d23562eeb741cd2ca9cdff2b5a2193/web/app_dev.php | web/app_dev.php | <?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Debug\Debug;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
//umask(... | php | MIT | 3853b3e980d23562eeb741cd2ca9cdff2b5a2193 | 2026-01-05T02:29:20.558309Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/.php-cs-fixer.php | .php-cs-fixer.php | <?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/lib')
->in(__DIR__.'/tests');
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => [
'operators' => [
'=' => 'align',
'=>' => 'a... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/.github/ci-files/local_5.php | .github/ci-files/local_5.php | <?php
/**
* Parameter overrides for GitHub Actions.
*/
$parameters = [
'api_enabled' => true,
'api_enable_basic_auth' => true,
'db_driver' => 'pdo_mysql',
'db_host' => '127.0.0.1',
'db_table_prefix' => null,
'db_port' => getenv('DB_PORT')... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/.github/ci-files/local.config.php | .github/ci-files/local.config.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication/Authorization Method
|--------------------------------------------------------------------------
|
| Specifies which Class to use when creating the Auth class
|
| Currently sup... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/.github/ci-files/local_4.php | .github/ci-files/local_4.php | <?php
/**
* Parameter overrides for GitHub Actions.
*/
$parameters = [
'api_enabled' => true,
'api_enable_basic_auth' => true,
'db_driver' => 'pdo_mysql',
'db_host' => '127.0.0.1',
'db_table_prefix' => null,
'db_port' => getenv('DB_PORT')... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/ResponseTest.php | tests/ResponseTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests;
use GuzzleHttp\Psr7\Response as HttpResponse;
use Mautic\Exception\UnexpectedResponseFormatException;
use Ma... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/bootstrap.php | tests/bootstrap.php | <?php
// Ensure a test config exists
$configPath = __DIR__.'/local.config.php';
if (!file_exists($configPath)) {
fwrite(STDOUT, 'A local config file does not exist. Please create one. You can use the file at '.__DIR__."/local.config.php.dist as a starting point.\n");
exit;
}
// Load the Composer autoloade... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/QueryBuilder/WhereBuilderTest.php | tests/QueryBuilder/WhereBuilderTest.php | <?php
/*
* @copyright 2016 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Tests\QueryBuilder;
use Mautic\QueryBuilder\WhereBuilder;
use PHPUnit\Framework\TestCase... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/FormsTest.php | tests/Api/FormsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class FormsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/RolesTest.php | tests/Api/RolesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class RolesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/CompaniesTest.php | tests/Api/CompaniesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class CompaniesTest extends AbstractCustomFieldsTest
{
public function setUp(): void
{
$... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/DevicesTest.php | tests/Api/DevicesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class DevicesTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['lead'];
publi... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/PagesTest.php | tests/Api/PagesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class PagesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ContactFieldsTest.php | tests/Api/ContactFieldsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class ContactFieldsTest extends MauticApiTestCase
{
protected $prefix = '';
public function set... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/MessagesTest.php | tests/Api/MessagesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class MessagesTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['channels'];
... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/UsersTest.php | tests/Api/UsersTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class UsersTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['plainPassword', 'rol... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/PointsTest.php | tests/Api/PointsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class PointsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/CategoriesTest.php | tests/Api/CategoriesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class CategoriesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/SmsesTest.php | tests/Api/SmsesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class SmsesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/UtmTagsTest.php | tests/Api/UtmTagsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class UtmTagsTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['lead'];
protec... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ExceptionsTest.php | tests/Api/ExceptionsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
/*
|--------------------------------------------------------------------------
| Exception Refactor Tests
|---------------------------... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/StagesTest.php | tests/Api/StagesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class StagesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/DataTest.php | tests/Api/DataTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class DataTest extends MauticApiTestCase
{
/*
* Currently supported "Data" items (AFAIK)
*/
... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/MauticApiTestCase.php | tests/Api/MauticApiTestCase.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
use Mautic\Api\Api;
use Mautic\Auth\ApiAuth;
use Mautic\MauticApi;
use Mautic\QueryBuilder\QueryBuilder;... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/FilesTest.php | tests/Api/FilesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class FilesTest extends MauticApiTestCase
{
protected $mediaFolder = 'media';
public function s... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ReportsTest.php | tests/Api/ReportsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class ReportsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ResponseInfoTest.php | tests/Api/ResponseInfoTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class ResponseInfoTest extends MauticApiTestCase
{
public function setUp(): void
{
$this... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/PointTriggersTest.php | tests/Api/PointTriggersTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class PointTriggersTest extends MauticApiTestCase
{
public function setUp(): void
{
$thi... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/DynamicContentsTest.php | tests/Api/DynamicContentsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class DynamicContentsTest extends MauticApiTestCase
{
public function setUp(): void
{
$t... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ThemesTest.php | tests/Api/ThemesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class ThemesTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/CompanyFieldTest.php | tests/Api/CompanyFieldTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
use Mautic\Tests\Api;
class CompanyFieldTest extends ContactFieldsTest
{
protected $prefix = 'Compa... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/ContactsTest.php | tests/Api/ContactsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
use Mautic\Api\Contacts;
use Mautic\QueryBuilder\Que... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/TweetsTest.php | tests/Api/TweetsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class TweetsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/TagsTest.php | tests/Api/TagsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class TagsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/NotificationsTest.php | tests/Api/NotificationsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class NotificationsTest extends MauticApiTestCase
{
public function setUp(): void
{
$thi... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/StatsTest.php | tests/Api/StatsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class StatsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api =... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/FocusTest.php | tests/Api/FocusTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class FocusTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['htmlMode', 'properti... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/AssetsTest.php | tests/Api/AssetsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class AssetsTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['file'];
protec... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/AbstractCustomFieldsTest.php | tests/Api/AbstractCustomFieldsTest.php | <?php
/*
* @copyright 2016 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Tests\Api;
abstract class AbstractCustomFieldsTest extends MauticApiTestCase
{
prote... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/PointGroupsTest.php | tests/Api/PointGroupsTest.php | <?php
declare(strict_types=1);
namespace Mautic\Tests\Api;
class PointGroupsTest extends MauticApiTestCase
{
public function setUp(): void
{
$this->api = $this->getContext('pointGroups');
$this->testPayload = [
'name' => 'New Point Group',
'description' ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/SegmentsTest.php | tests/Api/SegmentsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
use Mautic\Api\Segments;
class SegmentsTest extends MauticApiTestCase
{
/**
* @var Segments
... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/CampaignsTest.php | tests/Api/CampaignsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
use Mautic\Api\CampaignEvents;
class CampaignsTest extends MauticApiTestCase
{
/** @var CampaignEve... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/NotesTest.php | tests/Api/NotesTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class NotesTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['lead'];
public ... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/EmailsTest.php | tests/Api/EmailsTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class EmailsTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['lists'];
publi... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/WebhooksTest.php | tests/Api/WebhooksTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api;
class WebhooksTest extends MauticApiTestCase
{
protected $skipPayloadAssertion = ['dateModified', 'm... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/Auth/BasicAuthTest.php | tests/Api/Auth/BasicAuthTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api\Auth;
use Mautic\Auth\ApiAuth;
use Mautic\Exception\RequiredParameterMissingException;
use Mautic\MauticA... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/tests/Api/Auth/AbstractAuthTest.php | tests/Api/Auth/AbstractAuthTest.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Tests\Api\Auth;
use GuzzleHttp\Client;
use Mautic\Auth\AbstractAuth;
use Mautic\Exception\UnexpectedResponseFormatE... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Response.php | lib/Response.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic;
use Mautic\Exception\UnexpectedResponseFormatException;
use Psr\Http\Message\ResponseInterface;
/**
* Class help... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/MauticApi.php | lib/MauticApi.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic;
use Mautic\Auth\AuthInterface;
use Mautic\Exception\ContextNotFoundException;
/**
* Mautic API Factory.
*/
clas... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Auth/BasicAuth.php | lib/Auth/BasicAuth.php | <?php
/*
* @copyright 2017 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
/*
|--------------------------------------------------------------------------
| Basic Authentication Flow... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Auth/AbstractAuth.php | lib/Auth/AbstractAuth.php | <?php
/*
* @copyright 2017 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Auth;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\P... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Auth/OAuth.php | lib/Auth/OAuth.php | <?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Auth;
use Mautic\Exception\AuthorizationRequiredException;
use Mautic\Exception\Incorrec... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Auth/ApiAuth.php | lib/Auth/ApiAuth.php | <?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Auth;
use Http\Discovery\Psr18ClientDiscovery;
use Psr\Http\Client\ClientInterface;
/**... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Auth/AuthInterface.php | lib/Auth/AuthInterface.php | <?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\Auth;
use Psr\Http\Client\ClientInterface;
interface AuthInterface
{
/**
* Che... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/ActionNotSupportedException.php | lib/Exception/ActionNotSupportedException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
/**
* Exception representing an unsupported action.
*/
class ActionNotSupportedException extends Abstr... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/AbstractApiException.php | lib/Exception/AbstractApiException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
/**
* Abstract Exception class with common behavour - DRY implementation.
*/
abstract class AbstractAp... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.