Skip to content

Commit

Permalink
ISSUE-337: move support back
Browse files Browse the repository at this point in the history
  • Loading branch information
tatevikg1 committed Dec 4, 2024
1 parent 12d014c commit df46140
Show file tree
Hide file tree
Showing 42 changed files with 634 additions and 1,764 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"nikic/php-parser": "^4.19.1",
"phpmd/phpmd": "^2.6.0",
"symfony/test-pack": "^1.1",
"symfony/process": "^6.4"
"symfony/process": "^6.4",
"composer/composer": "^2.7",
"symfony/symfony": "^6.4"
},
"suggest": {
"phplist/web-frontend": "5.0.x-dev",
Expand Down
3 changes: 2 additions & 1 deletion src/EmptyStartPageBundle/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace PhpList\Core\EmptyStartPageBundle\Controller;

use InvalidArgumentException;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

Expand All @@ -13,7 +14,7 @@
*
* @author Oliver Klee <[email protected]>
*/
class DefaultController
class DefaultController extends AbstractController
{
/**
* An empty start page route.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PhpList\Core\Tests\TestingSupport\Traits;
namespace PhpList\Core\TestingSupport\Traits;

/**
* This trait provides the assertContainsInstanceOf method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PhpList\Core\Tests\TestingSupport\Traits;
namespace PhpList\Core\TestingSupport\Traits;

use Doctrine\Common\DataFixtures\Purger\ORMPurger;
use Doctrine\ORM\EntityManagerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PhpList\Core\Tests\TestingSupport\Traits;
namespace PhpList\Core\TestingSupport\Traits;

use PhpList\Core\Domain\Model\Interfaces\DomainModel;
use ReflectionObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PhpList\Core\Tests\TestingSupport\Traits;
namespace PhpList\Core\TestingSupport\Traits;

use DateTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PhpList\Core\Tests\TestingSupport\Traits;
namespace PhpList\Core\TestingSupport\Traits;

use InvalidArgumentException;
use PhpList\Core\Core\ApplicationStructure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
use RuntimeException;

class AdministratorFixture extends Fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Doctrine\Persistence\ObjectManager;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
use RuntimeException;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
use RuntimeException;

class DetachedAdministratorTokenFixture extends Fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Doctrine\Persistence\ObjectManager;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Domain\Model\Messaging\SubscriberList;
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
use RuntimeException;

class SubscriberListFixture extends Fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Doctrine\ORM\Tools\SchemaTool;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\SimilarDatesAssertionTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\DetachedAdministratorTokenFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\TestingSupport\Traits\SimilarDatesAssertionTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@

use DateTime;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\Persistence\Proxy;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Domain\Model\Messaging\SubscriberList;
use PhpList\Core\Domain\Model\Subscription\Subscription;
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriptionRepository;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\SimilarDatesAssertionTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberListFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriptionFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\TestingSupport\Traits\SimilarDatesAssertionTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriptionRepository;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\SimilarDatesAssertionTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberListFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriptionFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\TestingSupport\Traits\SimilarDatesAssertionTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
namespace PhpList\Core\Tests\Integration\Domain\Repository\Subscription;

use DateTime;
//use Doctrine\ORM\Proxy\Proxy;
use Doctrine\ORM\Tools\SchemaTool;
use PhpList\Core\Domain\Model\Messaging\SubscriberList;
use PhpList\Core\Domain\Model\Subscription\Subscriber;
use PhpList\Core\Domain\Model\Subscription\Subscription;
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\Core\Domain\Repository\Subscription\SubscriptionRepository;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\SimilarDatesAssertionTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriberListFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\SubscriptionFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\TestingSupport\Traits\SimilarDatesAssertionTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

//use Doctrine\ORM\Proxy\Proxy;

/**
* Testcase.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Security/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Doctrine\ORM\Tools\SchemaTool;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Security\Authentication;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorFixture;
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorTokenWithAdministratorFixture;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\HttpFoundation\Request;

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Security/HashGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Doctrine\ORM\Tools\SchemaTool;
use PhpList\Core\Security\HashGenerator;
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace PhpList\Core\Tests\System\ApplicationBundle;

use GuzzleHttp\Client;
use PhpList\Core\Tests\TestingSupport\Traits\SymfonyServerTrait;
use PhpList\Core\TestingSupport\Traits\SymfonyServerTrait;
use PHPUnit\Framework\TestCase;

/**
Expand Down
35 changes: 0 additions & 35 deletions tests/TestingSupport/AbstractWebTest.php

This file was deleted.

Loading

0 comments on commit df46140

Please sign in to comment.