Skip to content

Commit a96c857

Browse files
committed
ISSUE-337: move test related staff to test folder + bring back author
1 parent b5fe9e1 commit a96c857

29 files changed

+45
-42
lines changed

src/Domain/Model/Identity/Administrator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* This class represents an administrator who can log to the system, is allowed to administer
1919
* selected lists (as the owner), send campaigns to these lists and edit subscribers.
20+
*
21+
* @author Oliver Klee <[email protected]>
2022
*/
2123
#[ORM\Entity(repositoryClass: "PhpList\Core\Domain\Repository\Identity\AdministratorRepository")]
2224
#[ORM\Table(name: "phplist_admin")]

src/Domain/Model/Identity/AdministratorToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
/**
1919
* This class represents an API authentication token for an administrator.
20+
* @author Oliver Klee <[email protected]>
2021
*/
2122
#[ORM\Entity(repositoryClass: "PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository")]
2223
#[ORM\Table(name: "phplist_admintoken")]

src/Domain/Model/Messaging/SubscriberList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
/**
2323
* This class represents an administrator who can log to the system, is allowed to administer
2424
* selected lists (as the owner), send campaigns to these lists and edit subscribers.
25-
*/
25+
* @author Oliver Klee <[email protected]>
26+
*/
2627
#[ORM\Entity(repositoryClass: "PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository")]
2728
#[ORM\Table(name: "phplist_list")]
2829
#[ORM\HasLifecycleCallbacks]

src/Domain/Model/Subscription/Subscriber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/**
2222
* This class represents subscriber who can subscribe to multiple subscriber lists and can receive email messages from
2323
* campaigns for those subscriber lists.
24+
* @author Oliver Klee <[email protected]>
2425
*/
2526
#[ORM\Entity(repositoryClass: "PhpList\Core\Domain\Repository\Subscription\SubscriberRepository")]
2627
#[ORM\Table(name: "phplist_user_user")]

src/Domain/Model/Subscription/Subscription.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
/**
2020
* This class represents subscriber who can subscribe to multiple subscriber lists and can receive email messages from
2121
* campaigns for those subscriber lists.
22+
* @author Oliver Klee <[email protected]>
2223
*/
2324
#[ORM\Entity(repositoryClass: "PhpList\Core\Domain\Repository\Subscription\SubscriptionRepository")]
2425
#[ORM\Table(name: "phplist_listuser")]
@@ -54,7 +55,7 @@ class Subscription implements DomainModel, CreationDate, ModificationDate
5455
#[Ignore]
5556
private ?SubscriberList $subscriberList = null;
5657

57-
public function getSubscriber(): ?Subscriber
58+
public function getSubscriber(): Subscriber|Proxy|null
5859
{
5960
return $this->subscriber;
6061
}

src/TestingSupport/Fixtures/TouchTable.csv

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/Integration/Domain/Repository/Fixtures/AdministratorFixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace PhpList\Core\Tests\Integration\Domain\Repository\Fixtures;
66

7+
use DateTime;
78
use Doctrine\Bundle\FixturesBundle\Fixture;
89
use Doctrine\Persistence\ObjectManager;
910
use PhpList\Core\Domain\Model\Identity\Administrator;
10-
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
11+
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
1112
use RuntimeException;
12-
use DateTime;
1313

1414
class AdministratorFixture extends Fixture
1515
{

tests/Integration/Domain/Repository/Fixtures/AdministratorTokenWithAdministratorFixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace PhpList\Core\Tests\Integration\Domain\Repository\Fixtures;
66

7+
use DateTime;
78
use Doctrine\Bundle\FixturesBundle\Fixture;
89
use Doctrine\Persistence\ObjectManager;
910
use PhpList\Core\Domain\Model\Identity\Administrator;
1011
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
11-
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
12+
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
1213
use RuntimeException;
13-
use DateTime;
1414

1515
class AdministratorTokenWithAdministratorFixture extends Fixture
1616
{

tests/Integration/Domain/Repository/Fixtures/DetachedAdministratorTokenFixture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace PhpList\Core\Tests\Integration\Domain\Repository\Fixtures;
66

7+
use DateTime;
78
use Doctrine\Bundle\FixturesBundle\Fixture;
89
use Doctrine\Persistence\ObjectManager;
910
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
10-
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
11+
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
1112
use RuntimeException;
12-
use DateTime;
1313

1414
class DetachedAdministratorTokenFixture extends Fixture
1515
{

tests/Integration/Domain/Repository/Identity/AdministratorRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Doctrine\ORM\Tools\SchemaTool;
99
use PhpList\Core\Domain\Model\Identity\Administrator;
1010
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
11-
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
12-
use PhpList\Core\TestingSupport\Traits\ModelTestTrait;
1311
use PhpList\Core\Tests\Integration\Domain\Repository\Fixtures\AdministratorFixture;
12+
use PhpList\Core\Tests\TestingSupport\Traits\DatabaseTestTrait;
13+
use PhpList\Core\Tests\TestingSupport\Traits\ModelTestTrait;
1414
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1515

1616
class AdministratorRepositoryTest extends KernelTestCase

0 commit comments

Comments
 (0)