Browse Source

add test read method passing options

pull/46/head
Diogo Bemfica 5 years ago
parent
commit
74155bbe40
  1. 6
      tests/ClientTest.php

6
tests/ClientTest.php

@ -249,6 +249,12 @@ class ClientTest extends TestCase
// $this->assertCount(13, $read);
$this->assertEquals('zzzz', $read[0]['tag']);
/*
* Build query with option count
*/
$read = $this->client->query('/interface/monitor-traffic')->read(true, ['count' => 3]);
$this->assertCount(3, $read);
}
public function testReadAsIterator(): void

Loading…
Cancel
Save