Browse Source

tests fixed

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

4
tests/ClientTest.php

@ -145,10 +145,6 @@ class ClientTest extends TestCase
* Build query with where
*/
$read = $obj->query('/system/package/print')->read();
$this->assertCount(13, $read);
$this->assertEquals('advanced-tools', $read[12]['name']);
$read = $obj->query('/system/package/print', ['name'])->read();
$this->assertCount(13, $read);
$this->assertEquals('dude', $read[0]['name']);

3
tests/ResponseIteratorTest.php

@ -31,9 +31,6 @@ class ResponseIteratorTest extends TestCase
// Read from RAW
$this->assertCount(13, $readTrap);
$this->assertEquals('advanced-tools', $readTrap[12]['name']);
// Read from parsed
$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