assertEquals(2, $model->getTotalCount()); $this->assertEquals('https://url_to_next_page', $model->getFirstUrl()); $this->assertEquals('https://url_to_last_page', $model->getLastUrl()); $this->assertEquals('https://url_to_next_page', $model->getNextUrl()); $this->assertEquals('https://url_to_previous_page', $model->getPreviousUrl()); $items = $model->getItems(); $this->assertCount(2, $items); $item = $items[0]; $this->assertInstanceOf(Whitelist::class, $item); $this->assertEquals('alice@example.com', $item->getValue()); $this->assertEquals('reason of white listing', $item->getReason()); $this->assertEquals('address', $item->getType()); $this->assertEquals('2011-10-21 11:02:55', $item->getCreatedAt()->format('Y-m-d H:i:s')); $item = $items[1]; $this->assertInstanceOf(Whitelist::class, $item); $this->assertEquals('test.com', $item->getValue()); $this->assertEquals('reason of white listing', $item->getReason()); $this->assertEquals('domain', $item->getType()); $this->assertEquals('2012-10-26 11:02:56', $item->getCreatedAt()->format('Y-m-d H:i:s')); } }