Skip to content

Use random values in unit tests #300

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

Open
10 of 47 tasks
php-coder opened this issue Dec 30, 2015 · 1 comment
Open
10 of 47 tasks

Use random values in unit tests #300

php-coder opened this issue Dec 30, 2015 · 1 comment

Comments

@php-coder
Copy link
Owner

php-coder commented Dec 30, 2015

Replace all occurrences of static values to random. If we need an integer we should return random integer. If we need a string we need to return string with random parts of letters in it.

TODO:

  • evaluate CategoryServiceImplTest
    • random id
    • random count
    • random category slug
    • random category name in English
    • random category name in Russian
    • random 2-letters language
    • random date
  • evaluate CollectionServiceImplTest
    • random id
    • random user login
    • random boolean
    • random count
    • random date
    • random quantity
    • random collection slug
  • evaluate CountryServiceImplTest
    • random id
    • random count
    • random category slug
    • random category name in English
    • random category name in Russian
    • random 2-letters language
    • random date
  • evaluate CronServiceImplTest
  • evaluate DatabaseImagePersistenceStrategyTest
    • random bytes
    • random id
  • evaluate FilesystemImagePersistenceStrategyTest
    • random bytes
  • evaluate ImageServiceImplTest
  • evaluate SeriesSalesServiceImplTest
  • evaluate SeriesServiceImplTest
  • evaluate SiteServiceImplTest
  • evaluate StampsCatalogServiceImplTest
  • evaluate SuspiciousActivityServiceImplTest
  • evaluate TimedImagePreviewStrategyTest
    • random bytes
  • evaluate TransactionParticipantServiceImplTest
    • random participant name
    • random participant url
  • evaluate UsersActivationServiceImplTest
  • evaluate UserServiceImplTest
  • evaluate CatalogUtilsTest
  • evaluate LocaleUtilsTest
  • evaluate PagerTest
  • evaluate SlugUtilsTest
@php-coder
Copy link
Owner Author

php-coder commented Apr 21, 2016

Maybe this project could be useful: https://github.com/qala-io/datagen

@php-coder php-coder added this to the next milestone Jul 29, 2016
@Shkarin Shkarin mentioned this issue Aug 23, 2017
@php-coder php-coder self-assigned this Oct 3, 2017
php-coder added a commit that referenced this issue Oct 6, 2017
php-coder added a commit that referenced this issue Oct 6, 2017
…constant.

Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Oct 6, 2017
php-coder added a commit that referenced this issue Oct 6, 2017
php-coder added a commit that referenced this issue Oct 6, 2017
php-coder added a commit that referenced this issue Nov 20, 2017
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Nov 20, 2017
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Nov 20, 2017
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Nov 20, 2017
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Dec 29, 2017
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Dec 29, 2017
… series dao): use random values.

Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
php-coder added a commit that referenced this issue Feb 8, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Feb 8, 2018
php-coder added a commit that referenced this issue Mar 12, 2018
php-coder added a commit that referenced this issue Mar 28, 2018
php-coder added a commit that referenced this issue Mar 28, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Mar 28, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Mar 28, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Mar 28, 2018
php-coder added a commit that referenced this issue Mar 28, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Jul 18, 2018
Addressed to #300

No functional changes.
php-coder added a commit that referenced this issue Jul 19, 2018
php-coder added a commit that referenced this issue Dec 19, 2018
php-coder added a commit that referenced this issue Nov 4, 2019
php-coder added a commit that referenced this issue Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant