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

Bug: folder tests not found #3807

Closed
totoprayogo1916 opened this issue Oct 24, 2020 · 4 comments · Fixed by #3816
Closed

Bug: folder tests not found #3807

totoprayogo1916 opened this issue Oct 24, 2020 · 4 comments · Fixed by #3816
Labels
documentation Pull requests for documentation only

Comments

@totoprayogo1916
Copy link
Contributor

Describe the bug
Follow the steps to install CI4 using composer: this link..

but in the framework folder, not found the tests folder.

CodeIgniter 4 version: 4.0.4

Context

  • OS: Windows 10
  • PHP version 7.4.11
@totoprayogo1916 totoprayogo1916 added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 24, 2020
@paulbalandan
Copy link
Member

Are you using the appstarter?

@totoprayogo1916
Copy link
Contributor Author

Appstarter is no problem.
The problem when adding CodeIgniter4 to an existing project,

in the tutorial asked to copy some folder
but one folder is not available.
Screenshot_2020-10-25-18-59-29-410_com android chrome

@paulbalandan
Copy link
Member

By chance, did you download codeigniter4/framework manually?

I see this as a documentation error because the deploy script does not include tests as folders to copy.

@paulbalandan paulbalandan added documentation Pull requests for documentation only and removed bug Verified issues on the current code behavior or pull requests that will fix them labels Oct 25, 2020
@paulbalandan
Copy link
Member

OK. I checked this and tests is not there. This is not a bug though but is intended. The contents of tests is for the framework's test suite and you would never need that in your code that's why it is omitted.

You can, however, create your own tests folder at the same level of app, public, writable. Don't forget though to include the _support subfolder inside tests so that you can use the SUPPORTPATH constant in your testing.

totoprayogo1916 added a commit to totoprayogo1916/framework-CI4 that referenced this issue Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests for documentation only
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants