Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed May 6, 2024
1 parent 427ea34 commit 06698ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional/NetworkPortType.php
Expand Up @@ -54,7 +54,6 @@ public function testDefaults()
'FROM' => \NetworkPortType::getTable(),
'WHERE' => ['is_importable' => true]
]);
$this->integer(count($iterator))->isIdenticalTo(7);

$expecteds = [
[
Expand Down Expand Up @@ -99,9 +98,17 @@ public function testDefaults()
'comment' => 'Multirate HDSL2 [Bob_Ray]',
'is_importable' => 1,
'instantiation_type' => 'NetworkPortEthernet',
], [
'value_decimal' => 188,
'name' => 'radioMAC',
'comment' => 'MAC layer over radio links [Daniele_Behar]',
'is_importable' => 1,
'instantiation_type' => 'NetworkPortWifi',
]
];

$this->integer(count($iterator))->isIdenticalTo(count($expecteds));

foreach ($iterator as $row) {
$expected = array_shift($expecteds);
$expected += [
Expand Down

0 comments on commit 06698ef

Please sign in to comment.