| @@ 8-26 (lines=19) @@ | ||
| 5 | use Dtc\QueueBundle\Tests\GetterSetterTrait; |
|
| 6 | use PHPUnit\Framework\TestCase; |
|
| 7 | ||
| 8 | class JobArchiveTest extends TestCase |
|
| 9 | { |
|
| 10 | use GetterSetterTrait; |
|
| 11 | ||
| 12 | public function testSetArgs() |
|
| 13 | { |
|
| 14 | $args = [1, 2, ['something']]; |
|
| 15 | ||
| 16 | $job = new \Dtc\QueueBundle\Document\JobArchive(); |
|
| 17 | ||
| 18 | $job->setArgs($args); |
|
| 19 | self::assertEquals($args, $job->getArgs()); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function testGettersSetters() |
|
| 23 | { |
|
| 24 | $this->runGetterSetterTests('Dtc\QueueBundle\Document\JobArchive'); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| @@ 8-26 (lines=19) @@ | ||
| 5 | use Dtc\QueueBundle\Tests\GetterSetterTrait; |
|
| 6 | use PHPUnit\Framework\TestCase; |
|
| 7 | ||
| 8 | class JobTest extends TestCase |
|
| 9 | { |
|
| 10 | use GetterSetterTrait; |
|
| 11 | ||
| 12 | public function testSetArgs() |
|
| 13 | { |
|
| 14 | $args = [1, 2, ['something']]; |
|
| 15 | ||
| 16 | $job = new \Dtc\QueueBundle\Document\Job(); |
|
| 17 | ||
| 18 | $job->setArgs($args); |
|
| 19 | self::assertEquals($args, $job->getArgs()); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function testGettersSetters() |
|
| 23 | { |
|
| 24 | $this->runGetterSetterTests('Dtc\QueueBundle\Document\Job'); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| @@ 8-26 (lines=19) @@ | ||
| 5 | use Dtc\QueueBundle\Tests\GetterSetterTrait; |
|
| 6 | use PHPUnit\Framework\TestCase; |
|
| 7 | ||
| 8 | class JobArchiveTest extends TestCase |
|
| 9 | { |
|
| 10 | use GetterSetterTrait; |
|
| 11 | ||
| 12 | public function testSetArgs() |
|
| 13 | { |
|
| 14 | $args = [1, 2, ['something']]; |
|
| 15 | ||
| 16 | $job = new \Dtc\QueueBundle\Entity\JobArchive(); |
|
| 17 | ||
| 18 | $job->setArgs($args); |
|
| 19 | self::assertEquals($args, $job->getArgs()); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function testGettersSetters() |
|
| 23 | { |
|
| 24 | $this->runGetterSetterTests('Dtc\QueueBundle\Entity\JobArchive'); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| @@ 8-26 (lines=19) @@ | ||
| 5 | use Dtc\QueueBundle\Tests\GetterSetterTrait; |
|
| 6 | use PHPUnit\Framework\TestCase; |
|
| 7 | ||
| 8 | class JobTest extends TestCase |
|
| 9 | { |
|
| 10 | use GetterSetterTrait; |
|
| 11 | ||
| 12 | public function testSetArgs() |
|
| 13 | { |
|
| 14 | $args = [1, 2, ['something']]; |
|
| 15 | ||
| 16 | $job = new \Dtc\QueueBundle\Entity\Job(); |
|
| 17 | ||
| 18 | $job->setArgs($args); |
|
| 19 | self::assertEquals($args, $job->getArgs()); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function testGettersSetters() |
|
| 23 | { |
|
| 24 | $this->runGetterSetterTests('Dtc\QueueBundle\Entity\Job'); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||