Files
yii2/docs/guide/test-acceptance.md
Alexander Makarov ba606d06eb Fixes #4673
2014-08-12 00:57:31 +04:00

828 B

Acceptance Tests

Note: This section is under development.

How to run webserver

In order to perform acceptance tests you need a web server. Since PHP 5.4 has built-in one, we can use it. For the basic application template it would be:

cd web
php -S localhost:8080

In order for the tests to work correctly you need to adjust TEST_ENTRY_URL in _bootstrap.php file. It should point to index-test.php of your webserver. Since we're running directly from its directory the line would be:

defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/index-test.php');