{"id":21525349,"url":"https://github.com/elbformat/ibexa-behat-bundle","last_synced_at":"2026-02-13T16:18:50.670Z","repository":{"id":165858142,"uuid":"640993543","full_name":"elbformat/ibexa-behat-bundle","owner":"elbformat","description":"Helpers to run behat test in ibexa.","archived":false,"fork":false,"pushed_at":"2025-03-10T08:18:59.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T18:34:22.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"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/elbformat.png","metadata":{"files":{"readme":"README.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}},"created_at":"2023-05-15T14:50:47.000Z","updated_at":"2025-03-10T08:18:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b64decf6-5c49-464c-9ffb-14f06a875804","html_url":"https://github.com/elbformat/ibexa-behat-bundle","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/elbformat/ibexa-behat-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fibexa-behat-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fibexa-behat-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fibexa-behat-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fibexa-behat-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elbformat","download_url":"https://codeload.github.com/elbformat/ibexa-behat-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbformat%2Fibexa-behat-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29261651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-24T01:34:40.038Z","updated_at":"2026-02-09T10:10:08.848Z","avatar_url":"https://github.com/elbformat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ibexa-behat-bundle\nAlthough there already is an [official behat bundle](https://github.com/ibexa/behat) for ibexa, this bundle has a completely different approach.\nIt is optimized for faster execution by using the Symfony Kernel directly and only partially reset the database.\nAlso, it has more strict wordings in a behavioural manner.\nLast but not least it also supports creating page builder blocks.\n\n## Installation\n\n1. Add the bundle via composer\n```console\ncomposer require elbformat/ibexa-behat-bundle\n```\n\n2. Activate bundles in `config/bundles.php`\n```php\nElbformat\\SymfonyBehatBundle\\ElbformatSymfonyBehatBundle::class =\u003e ['test' =\u003e true],\nElbformat\\IbexaBehatBundle\\ElbformatIbexaBehatBundle::class =\u003e ['test' =\u003e true],\n```\n\n3. Configure behat.yml\nSee the [symfony-behat-bundle installation](https://packagist.org/packages/elbformat/symfony-behat-bundle) instructions.\nAdd more contexts as you like\n```\ndefault:\n  suites:\n    default:\n      contexts:\n        - Elbformat\\IbexaBehatBundle\\Context\\AdminContext\n        - Elbformat\\IbexaBehatBundle\\Context\\ContentContext\n        - Elbformat\\IbexaBehatBundle\\Context\\LandingpageContext\n        - Elbformat\\IbexaBehatBundle\\Context\\ObjectstateContext\n        - Elbformat\\IbexaBehatBundle\\Context\\SolrContext\n        - Elbformat\\IbexaBehatBundle\\Context\\TrashContext\n```\n\n4. Use TestFilePathNormalizer\nIn order to test uploaded images, you need a predictable filename. \nThis can be achieved by skipping the random hash at the end, when running test.\nJust put the following line in your `config/services_behat.yaml` to\n```yaml\nservices:\n  # Prevent random character in image urls for tests\n  Elbformat\\IbexaBehatBundle\\IO\\TestFilePathNormalizer:\n    decorates: 'Ibexa\\Core\\IO\\FilePathNormalizer\\Flysystem'\n    arguments: ['@.inner']\n```\n\n## Run tests\nMake sure you have a database configured for the test environment.\nIt's recommended to have an extra database configured for tests in `.env.test`, to not accidentally delete real contents.\nAfter configuration you should initialise it once, before running any test against it.\n\n```shell\nbin/console -e test do:da:cr\nbin/console -e test do:mi:mi -n\nbin/console -e test ib:mi:mi -n\nbin/console -e test ibexa:reindex\n```\n\nThen you can simply run the tests.\n```shell\nvendor/bin/behat\n```\n\n## Tweaks\nWhen you have internal, fixed content/location ids \u003e 1000 you may want to change the minimum id for resetting the database.\nTo do this, you can simply add an enviromment variable `BEHAT_CONTENT_MIN_ID=10000` to `.env.behat`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbformat%2Fibexa-behat-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felbformat%2Fibexa-behat-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbformat%2Fibexa-behat-bundle/lists"}