You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaulZi 59342c6bd7 root no change when update with makeRoot. Close #11 7 years ago
..
data root no change when update with makeRoot. Close #11 7 years ago
migrations Add unit tests 9 years ago
models Add unit tests 9 years ago
mysql Add unit tests 9 years ago
pgsql Add unit tests 9 years ago
sqlite Add unit tests 9 years ago
.gitignore Add unit tests 9 years ago
ArrayDataSet.php Add unit tests 9 years ago
BaseTestCase.php Add unit tests 9 years ago
NestedSetsBehaviorTestCase.php root no change when update with makeRoot. Close #11 7 years ago
NestedSetsQueryTraitTestCase.php Add unit tests 9 years ago
README.md Add unit tests 9 years ago
bootstrap.php Add unit tests 9 years ago

README.md

Yii2 Materialized Path Behavior unit tests

How to run the test

Make sure you have PHPUnit installed and that you installed all composer dependencies (run composer update in the repo base directory).

Run PHPUnit in the yii repo base directory.

phpunit

You can run tests for specific groups only:

phpunit --group=sqlite,mysql

You can get a list of available groups via phpunit --list-groups.

test configurations

PHPUnit configuration is in phpunit.xml.dist in repository root folder. You can create your own phpunit.xml to override dist config.

Database and other backend system configuration can be found in tests/data/config.php adjust them to your needs to allow testing databases and caching in your environment. You can override configuration values by creating a config.local.php file and manipulate the $config variable. For example to change MySQL username and password your config.local.php should contain the following:

<?php
$config['mysql']['username'] = 'username';
$config['mysql']['password'] = 'password';