Skip to content

Add pagination functionality #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 29, 2017
Merged

Add pagination functionality #15

merged 3 commits into from
Jan 29, 2017

Conversation

pixelpeter
Copy link
Owner

  • Add pagination functionality.
    Now these functions are available
    • totalResults()
    • firstPage()
    • lastPage()
    • currentPage()
    • totalPages()
    • previousPage()
    • nextPage()
    • hasPreviousPage()
    • hasNextPage()
    • hasNotPreviousPage()
    • hasNotNextPage()
  • Get the Request & Response (Headers) from the last request
    • getRequest()
    • getResponse()

@@ -80,6 +84,197 @@ public function delete_can_be_called()
}

/**
* @test
*/
public function getrequest_can_be_called()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::getrequest_can_be_called is not in camel caps format

/**
* @test
*/
public function getresponse_can_be_called()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::getresponse_can_be_called is not in camel caps format

/**
* @test
*/
public function pagination_first_page_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_first_page_returns_valid_page_number is not in camel caps format

/**
* @test
*/
public function pagination_last_page_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_last_page_returns_valid_page_number is not in camel caps format

/**
* @test
*/
public function pagination_current_page_returns_first_page_when_empty()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_current_page_returns_first_page_when_empty is not in camel caps format

/**
* @test
*/
public function pagination_current_page_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_current_page_returns_valid_page_number is not in camel caps format

/**
* @test
*/
public function pagination_total_results_returns_valid_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_total_results_returns_valid_number is not in camel caps format

/**
* @test
*/
public function pagination_total_pages_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_total_pages_returns_valid_page_number is not in camel caps format

/**
* @test
*/
public function pagination_previous_page_is_null_when_on_first_page()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_previous_page_is_null_when_on_first_page is not in camel caps format

/**
* @test
*/
public function pagination_previous_page_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_previous_page_returns_valid_page_number is not in camel caps format

/**
* @test
*/
public function pagination_next_page_is_null_when_on_last_page()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_next_page_is_null_when_on_last_page is not in camel caps format

/**
* @test
*/
public function pagination_next_page_returns_valid_page_number()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::pagination_next_page_returns_valid_page_number is not in camel caps format

@coveralls
Copy link

coveralls commented Jan 29, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling bb454b1 on develop into 3f23f80 on master.

@pixelpeter pixelpeter merged commit 56652e2 into master Jan 29, 2017
@zachary zachary mentioned this pull request Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants