Skip to content
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

Fix optional time_limit access in create of question sets #11 #14

Merged
merged 1 commit into from
Mar 24, 2016

Conversation

tjchambers
Copy link
Contributor

Optional time_limit value was not provided access by PHP.
Add test to verify access to time_limit.
Add test to confirm expired response.
Bump to v4.0.3

Optional time_limit value was not provided access by PHP.
Add test to verify access to time_limit.
Add test to confirm expired response.
Bump to v4.0.3
@tjchambers
Copy link
Contributor Author

@alain ready for review and packaging when green

{
$person = self::createTestPerson();
$qs = $person->question_sets->create(2);
sleep(4);
Copy link
Member

Choose a reason for hiding this comment

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

This sleep is necessary right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - we are proving that a short time limit expires and the client receives the expired flag properly set as NOW expired. I made it short, but it still adds briefly to the test run. But it confirms that it is returned AND it is accessible to the client code.

@alainmeier
Copy link
Member

As long as the sleep is required, this LGTM

@alainmeier alainmeier merged commit 30cd78a into master Mar 24, 2016
@alainmeier alainmeier deleted the fix/add_optional_time_limit branch March 24, 2016 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants