Skip to content

Commit da1469b

Browse files
committed
wip test
1 parent fa2e9f5 commit da1469b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/ServiceTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ public function test_service_build()
1414
->setName('nginx')
1515
->setAnnotations(['nginx/ann' => 'yes'])
1616
->setSelectors(['app' => 'frontend'])
17-
->setPorts([
18-
['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80],
19-
]);
17+
->addPorts([['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80]])
18+
->setPorts([['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80]]);
2019

2120
$this->assertEquals('v1', $svc->getApiVersion());
2221
$this->assertEquals('nginx', $svc->getName());
2322
$this->assertEquals(['nginx/ann' => 'yes'], $svc->getAnnotations());
2423
$this->assertEquals(['app' => 'frontend'], $svc->getSelectors());
25-
$this->assertEquals([[
26-
'protocol' => 'TCP', 'port' => 80, 'targetPort' => 80,
27-
]], $svc->getPorts());
24+
$this->assertEquals([['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80]], $svc->getPorts());
2825
}
2926

3027
public function test_service_from_yaml()

0 commit comments

Comments
 (0)