1 | <?php |
||
2 | /* (c) Anton Medvedev <[email protected]> |
||
3 | * |
||
4 | * For the full copyright and license information, please view the LICENSE |
||
5 | * file that was distributed with this source code. |
||
6 | */ |
||
7 | |||
8 | namespace Deployer; |
||
9 | |||
10 | class OncePerNodeTest extends AbstractTest |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||
11 | { |
||
12 | public const RECIPE = __DIR__ . '/recipe/once_per_node.php'; |
||
13 | |||
14 | public function testOnce() |
||
15 | { |
||
16 | $this->dep(self::RECIPE, 'test_once_per_node'); |
||
17 | |||
18 | $display = $this->tester->getDisplay(); |
||
19 | self::assertEquals(0, $this->tester->getStatusCode(), $display); |
||
20 | self::assertStringContainsString('alias: group_a_1 hostname: localhost', $display); |
||
21 | self::assertStringNotContainsString('alias: group_a_2 hostname: localhost', $display); |
||
22 | self::assertStringContainsString('alias: group_b_1 hostname: group_b_1', $display); |
||
23 | self::assertStringNotContainsString('alias: group_b_2 hostname: group_b_2', $display); |
||
24 | } |
||
25 | } |
||
26 |