SevenShores\Hubspot\Tests\Integration\Resources\ContactListsTest::getBatchByIds PHP Method

getBatchByIds() public method

public getBatchByIds ( )
    public function getBatchByIds()
    {
        $lists = [$this->createList(), $this->createList()];
        $ids = array_reduce($lists, function ($listIds, $list) {
            $listIds[] = $list->listId;
            return $listIds;
        }, []);
        $response = $this->contactLists->getBatchByIds($ids);
        $this->assertEquals(200, $response->getStatusCode());
    }