PHPackages                             libresign/nextcloud-behat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. libresign/nextcloud-behat

ActiveLibrary[Testing &amp; Quality](/categories/testing)

libresign/nextcloud-behat
=========================

Basic steps for a Nextcloud app

v1.5.0(2mo ago)240.1k↓30.5%AGPL-3.0-or-laterPHPPHP &gt;=8.1CI failing

Since Apr 28Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/LibreSign/nextcloud-behat)[ Packagist](https://packagist.org/packages/libresign/nextcloud-behat)[ RSS](/packages/libresign-nextcloud-behat/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (54)Used By (0)

Nextcloud Behat context
=======================

[](#nextcloud-behat-context)

Basic Behat steps for a Nextcloud app

Install
-------

[](#install)

```
composer require --dev libresign/nextcloud-behat
```

Create the file `behat.yml`

```
default:
  autoload:
    '': '%paths.base%/features/bootstrap'
  suites:
    default:
      contexts:
        - Libresign\NextcloudBehat\NextcloudApiContext:
            parameters:
              # default value
              test_password: 123456
              # default value
              admin_password: admin
      # Only necessary if you want to have a different features folder
      paths:
        - '%paths.base%/features'
  extensions:
    # Use this extension to start the server
    PhpBuiltin\Server:
      verbose: false
      rootDir: /var/www/html
      host: localhost
```

Create the file `tests/features/bootstrap/FeatureContext.php` with this content:

```
