Carsten Brandt
11 years ago
55 changed files with 1277 additions and 1888 deletions
@ -1,9 +0,0 @@
|
||||
<?php |
||||
|
||||
Yii::setAlias('tests', realpath(__DIR__ . '/../tests')); |
||||
|
||||
$config = require(__DIR__ . '/web.php'); |
||||
|
||||
// ... customize $config for the "test" environment here... |
||||
|
||||
return $config; |
@ -1,3 +1,9 @@
|
||||
<?php |
||||
|
||||
require_once(__DIR__.'/yii_bootstrap.php'); |
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
defined('YII_ENV') or define('YII_ENV', 'test'); |
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php'); |
||||
require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
|
||||
Yii::setAlias('@tests', __DIR__); |
||||
|
@ -1,8 +1,7 @@
|
||||
<?php |
||||
namespace Codeception\Module; |
||||
|
||||
// here you can define custom functions for CodeGuy |
||||
|
||||
class CodeHelper extends \Codeception\Module |
||||
{ |
||||
// here you can define custom methods for CodeGuy |
||||
} |
||||
|
@ -1,8 +1,7 @@
|
||||
<?php |
||||
namespace Codeception\Module; |
||||
|
||||
// here you can define custom functions for TestGuy |
||||
|
||||
class TestHelper extends \Codeception\Module |
||||
{ |
||||
// here you can define custom methods for TestGuy |
||||
} |
||||
|
@ -1,8 +1,7 @@
|
||||
<?php |
||||
namespace Codeception\Module; |
||||
|
||||
// here you can define custom functions for WebGuy |
||||
|
||||
class WebHelper extends \Codeception\Module |
||||
{ |
||||
// here you can define custom methods for WebGuy |
||||
} |
||||
|
@ -1,19 +0,0 @@
|
||||
# Codeception Test Suite Configuration |
||||
|
||||
# suite for acceptance tests. |
||||
# perform tests in browser using the Selenium-like tools. |
||||
# powered by Mink (http://mink.behat.org). |
||||
# (tip: that's what your customer will see). |
||||
# (tip: test your ajax and javascript by one of Mink drivers). |
||||
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. |
||||
|
||||
class_name: WebGuy |
||||
modules: |
||||
enabled: |
||||
- WebHelper |
||||
- WebDriver |
||||
config: |
||||
WebDriver: |
||||
url: 'http://localhost/basic/web/index-test-accept.php' |
||||
browser: firefox |
@ -0,0 +1,24 @@
|
||||
# Codeception Test Suite Configuration |
||||
|
||||
# suite for acceptance tests. |
||||
# perform tests in browser using the Selenium-like tools. |
||||
# powered by Mink (http://mink.behat.org). |
||||
# (tip: that's what your customer will see). |
||||
# (tip: test your ajax and javascript by one of Mink drivers). |
||||
|
||||
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. |
||||
|
||||
class_name: WebGuy |
||||
modules: |
||||
enabled: |
||||
- WebHelper |
||||
- PhpBrowser |
||||
# you can use WebDriver instead of PhpBrowser to test javascript and ajax. |
||||
# This will require you to install selenium. See http://codeception.com/docs/04-AcceptanceTests#Selenium |
||||
# - WebDriver |
||||
config: |
||||
PhpBrowser: |
||||
url: 'http://localhost/basic-app/web/index-test-acceptance.php' |
||||
# WebDriver: |
||||
# url: 'http://localhost/basic-app/web/index-test-acceptance.php' |
||||
# browser: firefox |
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,3 @@
|
||||
<?php |
||||
|
||||
$config = require(__DIR__.'/../yii_bootstrap.php'); |
||||
|
||||
return yii\helpers\ArrayHelper::merge( |
||||
$config, |
||||
require(__DIR__ . '/../../config/codeception/unit.php') |
||||
); |
||||
// add unit testing specific bootstrap code here |
@ -1,10 +0,0 @@
|
||||
<?php |
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
|
||||
defined('YII_ENV') or define('YII_ENV', 'test'); |
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php'); |
||||
require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
|
||||
return require(__DIR__ . '/../config/web.php'); |
@ -1,13 +0,0 @@
|
||||
<?php |
||||
|
||||
// comment out the following two lines when deployed to production |
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
defined('YII_ENV') or define('YII_ENV', 'dev'); |
||||
|
||||
require(__DIR__ . '/../vendor/autoload.php'); |
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
|
||||
$config = require(__DIR__ . '/../config/web.php'); |
||||
|
||||
$application = new yii\web\Application($config); |
||||
$application->run(); |
@ -1,14 +1,15 @@
|
||||
<?php |
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
// NOTE: Make sure this file is not accessable when deployed to production |
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
defined('YII_ENV') or define('YII_ENV', 'test'); |
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php'); |
||||
require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
require(__DIR__ . '/../vendor/autoload.php'); |
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
|
||||
$config = yii\helpers\ArrayHelper::merge( |
||||
require(__DIR__ . '/../config/web-test.php'), |
||||
require(__DIR__ . '/../config/web.php'), |
||||
require(__DIR__ . '/../config/codeception/acceptance.php') |
||||
); |
||||
|
@ -1,16 +0,0 @@
|
||||
<?php |
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
|
||||
defined('YII_ENV') or define('YII_ENV', 'test'); |
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php'); |
||||
require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
|
||||
$config = yii\helpers\ArrayHelper::merge( |
||||
require(__DIR__ . '/../config/web-test.php'), |
||||
require(__DIR__ . '/../config/codeception/functional.php') |
||||
); |
||||
|
||||
$config['class'] = 'yii\web\Application'; |
||||
return $config; |
@ -0,0 +1,11 @@
|
||||
<?php |
||||
|
||||
// this file is used as the entry script for codeception functional testing |
||||
|
||||
$config = yii\helpers\ArrayHelper::merge( |
||||
require(__DIR__ . '/../config/web.php'), |
||||
require(__DIR__ . '/../config/codeception/functional.php') |
||||
); |
||||
|
||||
$config['class'] = 'yii\web\Application'; |
||||
return $config; |
Loading…
Reference in new issue