blob: 5d00794e19277fff0dea9e491161ba6932234589 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Jobs\Tests;
use PHPUnit\Framework\TestCase;
use Spiral\Jobs\Options;
class OptionsTest extends TestCase
{
public function testDelay(): void
{
$o = new Options();
$this->assertNull($o->getDelay());
$o = $o->withDelay(10);
$this->assertSame(10, $o->getDelay());
}
public function testPipeline(): void
{
$o = new Options();
$this->assertNull($o->getPipeline());
$o = $o->withPipeline('custom');
$this->assertSame('custom', $o->getPipeline());
}
}
|