Browse Source

tests fixed

tags/1.0.1
Paul Rock 6 years ago
parent
commit
b6d888f9d7
  1. 1
      tests/ClientTest.php
  2. 1
      tests/ResponseIteratorTest.php

1
tests/ClientTest.php

@ -147,7 +147,6 @@ class ClientTest extends TestCase
$read = $obj->query('/system/package/print', ['name'])->read();
$this->assertCount(13, $read);
$this->assertEquals('dude', $read[0]['name']);
$read = $obj->query('/system/package/print', ['.id', '*1'])->read();
$this->assertCount(1, $read);

1
tests/ResponseIteratorTest.php

@ -30,7 +30,6 @@ class ResponseIteratorTest extends TestCase
$readTrap = $obj->write('/system/package/print')->readAsIterator();
// Read from RAW
$this->assertCount(13, $readTrap);
$this->assertEquals('advanced-tools', $readTrap[12]['name']);
$readTrap = $obj->write('/ip/address/print')->readAsIterator();
$this->assertCount(1, $readTrap);

Loading…
Cancel
Save