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. router no set, Redirect can't work #3044

Merged
merged 1 commit into from
May 31, 2020
Merged

Fix. router no set, Redirect can't work #3044

merged 1 commit into from
May 31, 2020

Conversation

nyufeng
Copy link
Contributor

@nyufeng nyufeng commented May 29, 2020

Fix. #3041

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@@ -970,10 +970,11 @@ public function testAddRedirect()
{
$routes = $this->getCollector();

$routes->addRedirect('users', 'Users::index', 307);
//The second parameter is either the new URI to redirect to, or the name of a named route.
$routes->addRedirect('users', 'users/index', 307);
Copy link
Member

Choose a reason for hiding this comment

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

I think instead of modify existing test, it needs new tests for new allowed usage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This not a new allowed usage. The test is a mistak,It should not use Class::method.This is not what we accept

@lonnieezell lonnieezell merged commit d382dfe into codeigniter4:develop May 31, 2020
@nyufeng nyufeng deleted the fix-redirect branch June 2, 2020 00:33
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