{"id":21163447,"url":"https://github.com/punktde/codeception-mailhog","last_synced_at":"2025-07-09T15:35:06.025Z","repository":{"id":45640168,"uuid":"199848376","full_name":"punktDe/codeception-mailhog","owner":"punktDe","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-13T13:01:37.000Z","size":25,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-14T21:42:12.206Z","etag":null,"topics":["codeception"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punktDe.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-07-31T12:06:01.000Z","updated_at":"2021-12-03T06:40:47.000Z","dependencies_parsed_at":"2024-11-14T21:41:14.090Z","dependency_job_id":"1f745b2d-160b-4fef-9ba9-a9ffce4fdef2","html_url":"https://github.com/punktDe/codeception-mailhog","commit_stats":{"total_commits":7,"total_committers":4,"mean_commits":1.75,"dds":0.4285714285714286,"last_synced_commit":"2951485d816b0d0f2ea3eeed4c3014d7717cfb5d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-mailhog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-mailhog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-mailhog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fcodeception-mailhog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punktDe","download_url":"https://codeload.github.com/punktDe/codeception-mailhog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225567530,"owners_count":17489517,"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":["codeception"],"created_at":"2024-11-20T13:46:54.993Z","updated_at":"2024-11-20T13:46:55.715Z","avatar_url":"https://github.com/punktDe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# punktde/codeception-mailhog\n\n## Gherkin Steps and module functions to test using Mailhog\n\n### How to use\n\n### Prequesits\n\nYou have to have Mailhog installed and have your application configured to send mails to mailhog. See https://github.com/mailhog/MailHog\n\n#### Module\n\nYou have to add the `Webdriver` module to your config to use the `Mailhog` module. \nUse the module `PunktDe\\Codeception\\Mailhog\\Module\\Mailhog` in your `codeception.yaml`. You can configure under which uri the mailhog client is reachable (default is http://127.0.0.1:8025)\n\n```yaml\nmodules:\n   enabled:\n      - WebDriver:\n        url: 'http://acceptance.dev.punkt.de/'\n        browser: chrome\n        restart: true\n        window_size: 1920x2080\n        capabilities:\n          chromeOptions:\n            args:\n              - '--headless'\n              - '--disable-gpu'\n              - '--disable-dev-shm-usage'\n              - '--no-sandbox'\n      - PunktDe\\Codeception\\Mailhog\\Module\\Mailhog:\n        base_uri: http://mailhog.project\n```\n\n\n#### Gherkin steps\n\nJust add the trait `PunktDe\\Codeception\\Mailhog\\ActorTraits\\Mailhog` to your testing actor. Then you can use `*.feature` files to write your gherkin tests with the new steps.\n\n##### Example actor \n\n```php\n\u003c?php\n\n/*\n *  (c) 2018 punkt.de GmbH - Karlsruhe, Germany - http://punkt.de\n *  All rights reserved.\n */\n\n/**\n * Inherited Methods\n * @method void wantToTest($text)\n * @method void wantTo($text)\n * @method void execute($callable)\n * @method void expectTo($prediction)\n * @method void expect($prediction)\n * @method void amGoingTo($argumentation)\n * @method void am($role)\n * @method void lookForwardTo($achieveValue)\n * @method void comment($description)\n * @method \\Codeception\\Lib\\Friend haveFriend($name, $actorClass = NULL)\n *\n * @SuppressWarnings(PHPMD)\n*/\nclass AcceptanceTester extends \\Codeception\\Actor\n{\n    use _generated\\AcceptanceTesterActions;\n    use \\PunktDe\\Codeception\\Mailhog\\ActorTraits\\Mailhog; // use the mailhog steps trait\n}\n``` \n\n##### Which steps are there? \n\nTo get all the steps available you can just run the following command:\n\n```bash\nvendor/bin/codecept -c path/to/codeception.yaml gherkin:steps suiteName\n```\n\nThis will give you a table of all the steps available.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fcodeception-mailhog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunktde%2Fcodeception-mailhog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fcodeception-mailhog/lists"}