Skip to content

Commit

Permalink
Day 15: added groups to separate unit tests from future functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-bleih authored and gregurco committed Oct 8, 2019
1 parent 67c5d1f commit 325fdc5
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Entity/AffiliateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use Doctrine\Common\Collections\ArrayCollection;
use PHPUnit\Framework\TestCase;

/**
* Class AffiliateTest
* @group unit
*/
class AffiliateTest extends TestCase
{
public function testGettersSettersAndDefaultValues(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Entity/CategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
use Doctrine\Common\Collections\ArrayCollection;
use PHPUnit\Framework\TestCase;

/**
* Class CategoryTest
* @group unit
*/
class CategoryTest extends TestCase
{
public function testGettersSettersAndDefaultValues(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Entity/JobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\File\UploadedFile;

/**
* Class JobTest
* @group unit
*/
class JobTest extends TestCase
{
public function testGettersSettersAndDefaultValues(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/EventListener/AffiliateTokenListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

/**
* Class AffiliateTokenListenerTest
* @group unit
*/
class AffiliateTokenListenerTest extends TestCase
{
public function testAffiliateTokenIsSet(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/EventListener/JobTokenListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

/**
* Class JobTokenListenerTest
* @group unit
*/
class JobTokenListenerTest extends TestCase
{
public function testJobTokenIsSet(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/EventListener/JobUploadListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;

/**
* Class JobUploadListenerTest
* @group unit
*/
class JobUploadListenerTest extends TestCase
{
public function testPrePersistIgnoresNonJobs(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Form/AbstractTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Component\Validator\Validation;

/**
* Class AbstractTypeTest
* @group
*/
abstract class AbstractTypeTest extends TypeTestCase
{
/**
Expand Down
4 changes: 4 additions & 0 deletions tests/Form/Admin/CategoryTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
use App\Form\Admin\CategoryType;
use App\Tests\Form\AbstractTypeTest;

/**
* Class CategoryTypeTest
* @group unit
*/
class CategoryTypeTest extends AbstractTypeTest
{
public function testSubmitValidData(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Form/AffiliateTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
use App\Entity\Category;
use App\Form\AffiliateType;

/**
* Class AffiliateTypeTest
* @group unit
*/
class AffiliateTypeTest extends AbstractTypeTest
{
public function testSubmitValidData(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Form/JobTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use App\Form\JobType;
use Symfony\Component\HttpFoundation\File\UploadedFile;

/**
* Class JobTypeTest
* @group unit
*/
class JobTypeTest extends AbstractTypeTest
{
public function testSubmitValidData(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/CategoryServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

/**
* Class CategoryServiceTest
* @group unit
*/
class CategoryServiceTest extends TestCase
{
public function testCreateCategory(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/FileUploaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\File\UploadedFile;

/**
* Class FileUploaderTest
* @group unit
*/
class FileUploaderTest extends TestCase
{
public function testCreateCategory(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/JobHistoryServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

/**
* Class JobHistoryServiceTest
* @group unit
*/
class JobHistoryServiceTest extends TestCase
{
public function testAddJob(): void
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/MailerServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use Swift_Message;
use Symfony\Component\Templating\EngineInterface;

/**
* Class MailerServiceTest
* @group unit
*/
class MailerServiceTest extends TestCase
{
public function testCreateCategory(): void
Expand Down

0 comments on commit 325fdc5

Please sign in to comment.