{"id":36373766,"url":"https://github.com/mailcare/codeception-module-mailcare","last_synced_at":"2026-01-11T14:03:50.308Z","repository":{"id":62522799,"uuid":"228193218","full_name":"mailcare/codeception-module-mailcare","owner":"mailcare","description":"MailCare module for Codeception","archived":false,"fork":false,"pushed_at":"2019-12-31T11:25:12.000Z","size":117,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T20:50:43.488Z","etag":null,"topics":["codeception","codeception-module","hacktoberfest","mail","mailcare","testing"],"latest_commit_sha":null,"homepage":"http://codeception.mailcare.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mailcare.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}},"created_at":"2019-12-15T13:58:35.000Z","updated_at":"2023-09-29T16:28:53.000Z","dependencies_parsed_at":"2022-11-02T14:01:04.341Z","dependency_job_id":null,"html_url":"https://github.com/mailcare/codeception-module-mailcare","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mailcare/codeception-module-mailcare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailcare%2Fcodeception-module-mailcare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailcare%2Fcodeception-module-mailcare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailcare%2Fcodeception-module-mailcare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailcare%2Fcodeception-module-mailcare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mailcare","download_url":"https://codeload.github.com/mailcare/codeception-module-mailcare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailcare%2Fcodeception-module-mailcare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","codeception-module","hacktoberfest","mail","mailcare","testing"],"created_at":"2026-01-11T14:03:50.227Z","updated_at":"2026-01-11T14:03:50.300Z","avatar_url":"https://github.com/mailcare.png","language":"PHP","readme":"# codeception-module-mailcare\n\nMailCare module for Codeception \n\n## Installation\n\n```\ncomposer require \"mailcare/codeception-module-mailcare\"\n```\n\n## Documentation\n\nModule for testing receiving emails using [MailCare](https://mailcare.io).\n\n### Configuration\n\n* url *optional* - API url of your mailcare server (default: https://mailix.xyz/api)\n* login *optional* - login of your mailcare server\n* password *optional* - password of your mailcare server\n* timeoutInSeconds *optional* - Waits up to n seconds for an email to be received (default: 30 seconds)\n\n#### Example\n```\nmodules:\n    enabled\n        - MailCare:\n            url: 'https://mailix.xyz/api'\n            login: 'https://mailix.xyz/api'\n            password: 'https://mailix.xyz/api'\n```\n\n### Criterias\n\n * `inbox`      Filter by inbox (test@example.com).\n * `sender`     Filter by sender (test@example.com).\n * `subject`    Filter by subject (Welcome).\n * `since`      Filter by createdAt (2018-01-19T12:23:27+00:00 or ISO 8601 durations).\n * `search`     Search by inbox or sender or subject (matching).\n * `unread`     Filter only by unread (true).\n * `favorite`   Filter only by favorite (true).\n\nAll criterias can be found in the [API Documentation of MailCare](https://mailcare.docs.apiary.io) except for page and limit.\n\nExamples of `since` with ISO 8601 durations:\n* P1D: one-day duration\n* PT1M: one-minute duration (note the time designator, T, that precedes the time value)\n\n### Actions\n\n#### seeEmailCount\n\nChecks that the email count equals expected value.\nWaits up to $timeout seconds for the given email to be received.\n\n```php\n$I-\u003eseeEmailCount(2, [\n    'inbox' =\u003e 'john@example.org',\n    'sender' =\u003e 'no-reply@company.com',\n    'subject' =\u003e 'Welcome John!',\n    'since' =\u003e 'PT2M',\n], 30);\n```\n\n * `param int`      $expectedCount\n * `param array`    $criterias\n * `param int`      $timeoutInSeconds (optional)\n\n#### seeEmail\n\nChecks that the given email exists.\nWaits up to $timeout seconds for the given email to be received.\n\n```php\n$I-\u003eseeEmail([\n    'inbox' =\u003e 'john@example.org',\n    'sender' =\u003e 'no-reply@company.com',\n    'subject' =\u003e 'Welcome John!',\n    'since' =\u003e 'PT2M',\n], 30);\n```\n\n * `param array`    $criterias\n * `param int`      $timeoutInSeconds (optional)\n \n#### dontSeeEmail\n\nOpposite to seeEmail.\n\n```php\n$I-\u003edontSeeEmail([\n    'inbox' =\u003e 'john@example.org',\n    'since' =\u003e 'PT2M',\n], 30);\n```\n\n * `param array`    $criterias\n * `param int`      $timeoutInSeconds (optional)\n\n#### grabLinksInLastEmail\n\nIn the last email, grabs all the links\nWaits up to $timeout seconds for the given email to be received.\n\n```php\n$I-\u003egrabLinksInLastEmail([\n    'inbox' =\u003e 'john@example.org',\n    'since' =\u003e 'PT2M',\n], 30);\n```\n\n * `param array`    $criterias\n * `param int`      $timeoutInSeconds (optional)\n * `return array`   ['https://google.fr', 'https://mailcare.io']\n\n\n#### grabTextInLastEmail\n\nIn the last email, grabs all the text corresponding to a regex.\nWaits up to $timeout seconds for the given email to be received.\n\n```php\n$I-\u003egrabTextInLastEmail('#Password: (?\u003cpassword\u003e\\S+)#', [\n    'inbox' =\u003e 'john@example.org',\n    'subject' =\u003e 'Your credentials',\n    'since' =\u003e 'PT2M',\n], 30);\n```\n\n * `param string`   $regex\n * `param array`    $criterias\n * `param int`      $timeoutInSeconds (optional)\n * `return array`   matches from preg_match_all\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailcare%2Fcodeception-module-mailcare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailcare%2Fcodeception-module-mailcare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailcare%2Fcodeception-module-mailcare/lists"}