From 74155bbe40f07653fab9ca436518d7123de9a7a4 Mon Sep 17 00:00:00 2001 From: Diogo Bemfica Date: Fri, 27 Nov 2020 15:57:38 -0300 Subject: [PATCH] add test read method passing options --- tests/ClientTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 52adb62..77682c3 100644 --- a/tests/ClientTest.php +++ b/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