Skip to content

Return correct type on purge when limit has been reached.#185

Open
nedSaf wants to merge 4 commits into7.x-1.xfrom
184-return-correct-type-on-purge
Open

Return correct type on purge when limit has been reached.#185
nedSaf wants to merge 4 commits into7.x-1.xfrom
184-return-correct-type-on-purge

Conversation

@nedSaf
Copy link
Copy Markdown

@nedSaf nedSaf commented Apr 3, 2017

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Apr 3, 2017

Added a test, before the fix:
running_tests___drupal_7_testing

After the fix:
test_result___drupal_7_testing

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Apr 3, 2017

@RoySegall Ready for code review.

$this->assertEqual(count($messages), 8, t('Eight messages of type 2 left.'));
}

/**
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

First line of the php doc block need to in a single line.

@RoySegall
Copy link
Copy Markdown

What the settings of your installation? I've set up a message type with purge limit of 2 and set the global purge to 10(like in the tests) and created 30 messages and the cron ran OK.

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Apr 3, 2017

@RoySegall I ran the tests on a clean installation.

@RoySegall
Copy link
Copy Markdown

I don't think so because when running the tests a clean env. is created for the tests.

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Apr 3, 2017

I don't understand, let's discuss when you have time.

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Jul 20, 2017

@RoySegall Fixed your comment, so you are saying that you are running this test on master (7.x-1.x) and it's passing?

@RoySegall
Copy link
Copy Markdown

Back then - yes. I can test it again.

@nedSaf
Copy link
Copy Markdown
Author

nedSaf commented Jul 20, 2017

@RoySegall Please :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants