{"id":13697862,"url":"https://github.com/palantirnet/drupal-rector","last_synced_at":"2025-05-14T22:08:05.139Z","repository":{"id":39150788,"uuid":"234205485","full_name":"palantirnet/drupal-rector","owner":"palantirnet","description":"A developer utility for automatically upgrading deprecated code for Drupal 9","archived":false,"fork":false,"pushed_at":"2025-05-12T07:46:28.000Z","size":1665,"stargazers_count":149,"open_issues_count":8,"forks_count":74,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-12T08:56:08.036Z","etag":null,"topics":["drupal","hacktoberfest","php","rector"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palantirnet.png","metadata":{"files":{"readme":"README-automated-testing.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-16T01:08:48.000Z","updated_at":"2025-05-12T07:46:32.000Z","dependencies_parsed_at":"2023-09-27T23:00:56.744Z","dependency_job_id":"c3e31ee8-739b-41d5-8cec-36cdad8b7743","html_url":"https://github.com/palantirnet/drupal-rector","commit_stats":{"total_commits":973,"total_committers":36,"mean_commits":27.02777777777778,"dds":0.7327852004110997,"last_synced_commit":"50c742a34f89e4202056e433bbb476ca1fdf3797"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palantirnet%2Fdrupal-rector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palantirnet%2Fdrupal-rector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palantirnet%2Fdrupal-rector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palantirnet%2Fdrupal-rector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palantirnet","download_url":"https://codeload.github.com/palantirnet/drupal-rector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235696,"owners_count":22036963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","hacktoberfest","php","rector"],"created_at":"2024-08-02T18:01:04.038Z","updated_at":"2025-05-14T22:08:00.126Z","avatar_url":"https://github.com/palantirnet.png","language":"PHP","readme":"# Automated testing\n\n## Unit testing\n\nThe Drupal Rector project has PHPUnit tests, extending the testing suite functionality provided by Rector. This allows\nthe project to have confidence in the written Rector rules. To run the unit tests, there are different system requirements\nthan if you ran Drupal Rector against your Drupal site.\n\nTo run the PHPUnit tests:\n\n* Clone your fork of the repository\n* Run `composer install`\n* Run `php vendor/bin/phpunit`\n\nSee the `.github/workflows/phpunit.yml` workflow for an example.\n\n### Writing a PHPUnit test\n\nFor now, please see the example in `tests/src/Rector/Deprecation/DatetimeStorageTimezoneRector`.\n\n## Installation test\n\nGitHub Action workflows test that this package can be installed. See the workflows in `.github/workflows`.\n\n## Rector functional testing\n\nThe functional test takes the `rector_examples` directory in this package and copies it to a Drupal code base.\n\nThe workflow then runs `vendor/bin/rector process web/modules/custom/rector_examples` to apply all of the appropriate Rector rules.\n\nThen, the `diff` command is run to verify the changes match the expected results as found in the `rector_examples_updated` directory.\n\nTo add new tests, create a sample file in `rector_examples` and a copy with the expected changes into `rector_examples_updated`.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalantirnet%2Fdrupal-rector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalantirnet%2Fdrupal-rector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalantirnet%2Fdrupal-rector/lists"}