PHPackages                             damianlewis/oc-octobertesting-plugin - 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. damianlewis/oc-octobertesting-plugin

AbandonedArchivedOctober-plugin[Testing &amp; Quality](/categories/testing)

damianlewis/oc-octobertesting-plugin
====================================

Enables Laravel's testing frameworks for October CMS

v1.0.1(6y ago)12211MITPHPPHP &gt;=7.0

Since Oct 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/damianlewis/oc-octobertesting-plugin)[ Packagist](https://packagist.org/packages/damianlewis/oc-octobertesting-plugin)[ RSS](/packages/damianlewis-oc-octobertesting-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

October Testing
===============

[](#october-testing)

Enables the use of the Laravel testing frameworks within October CMS.

Usage
-----

[](#usage)

### Installation

[](#installation)

Install via Composer:

```
composer require damianlewis/oc-octobertesting-plugin --dev
```

### Plugin Feature &amp; Unit Tests

[](#plugin-feature--unit-tests)

To test plugins, create a `tests` folder within the plugin base folder and copy the `phpunit.xml` file to this location, for example, `/plugins/acme/blog/tests/phpunit.xml`. Create sub folders for feature and unit tests, for example, `/plugins/acme/blog/tests/feature/` and `/plugins/acme/blog/tests/unit/`. Then in the tests folders, create tests following the principles used for [Laravel testing](https://laravel.com/docs/5.5/testing). Test suites have been configured within the `phpunit.xml` file for feature and unit tests.

When creating tests, use the alternative `Tests\PluginTestCase` class. This alternative class doesn't make use of an in memory database, allowing you to choose what database you wish to use for testing. See example below.

```
