Skip to content

Commit 82dc5be

Browse files
committed
Fixing risky tests
Makring tests that have no assertions with the annotation to suppress phpunits warning around risky tests closes 1370
1 parent 4397bf4 commit 82dc5be

6 files changed

+18
-0
lines changed

Tests/CalculateRootJobStatusProcessorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
class CalculateRootJobStatusProcessorTest extends \PHPUnit\Framework\TestCase
1919
{
20+
/**
21+
* @doesNotPerformAssertions
22+
*/
2023
public function testCouldBeConstructedWithRequiredArguments()
2124
{
2225
new CalculateRootJobStatusProcessor(

Tests/CalculateRootJobStatusServiceTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
class CalculateRootJobStatusServiceTest extends \PHPUnit\Framework\TestCase
1111
{
12+
/**
13+
* @doesNotPerformAssertions
14+
*/
1215
public function testCouldBeConstructedWithRequiredArguments()
1316
{
1417
new CalculateRootJobStatusService($this->createJobStorageMock());

Tests/DependentJobContextTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class DependentJobContextTest extends \PHPUnit\Framework\TestCase
99
{
10+
/**
11+
* @doesNotPerformAssertions
12+
*/
1013
public function testCouldBeConstructedWithRequiredArguments()
1114
{
1215
new DependentJobContext(new Job());

Tests/DependentJobServiceTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
class DependentJobServiceTest extends \PHPUnit\Framework\TestCase
1212
{
13+
/**
14+
* @doesNotPerformAssertions
15+
*/
1316
public function testCouldBeConstructedWithRequiredArguments()
1417
{
1518
new DependentJobService($this->createJobStorageMock());

Tests/Doctrine/JobStorageTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
class JobStorageTest extends \PHPUnit\Framework\TestCase
1717
{
18+
/**
19+
* @doesNotPerformAssertions
20+
*/
1821
public function testCouldBeConstructedWithRequiredArguments()
1922
{
2023
new JobStorage($this->createDoctrineMock(), 'entity-class', 'unique_table');

Tests/JobProcessorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
class JobProcessorTest extends TestCase
1515
{
16+
/**
17+
* @doesNotPerformAssertions
18+
*/
1619
public function testCouldBeCreatedWithRequiredArguments()
1720
{
1821
new JobProcessor($this->createJobStorage(), $this->createProducerMock());

0 commit comments

Comments
 (0)