From eb6606142fcb4e86f8fb44f5e4b56d62e7fed1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Agust=C3=ADn=20Marisi?= Date: Mon, 22 Jun 2015 16:51:19 -0300 Subject: [PATCH] Se agregaron los componentes de testing. --- app/config/config_test.yml | 5 ++-- app/config/parameters.yml.dist | 1 + behat.yml | 11 ++++++++ composer.json | 8 +++++- .../Features/Context/FeatureContext.php | 25 +++++++++++++++++++ 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 behat.yml create mode 100644 features/bootstrap/Celsius3/CoreBundle/Features/Context/FeatureContext.php diff --git a/app/config/config_test.yml b/app/config/config_test.yml index d41e174da..860f50efe 100644 --- a/app/config/config_test.yml +++ b/app/config/config_test.yml @@ -13,5 +13,6 @@ web_profiler: swiftmailer: disable_delivery: true -doctrine_mongodb: - default_database: %mongodb_database_test% +doctrine: + dbal: + dbname: "%database_name_test%" diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 0ce0167d9..42154f8c1 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist @@ -3,6 +3,7 @@ parameters: database_host: 127.0.0.1 database_port: null database_name: celsius3 + database_name_test: celsius3_test database_user: root database_password: root diff --git a/behat.yml b/behat.yml new file mode 100644 index 000000000..4a8972521 --- /dev/null +++ b/behat.yml @@ -0,0 +1,11 @@ +default: + extensions: + Behat\Symfony2Extension: ~ + Behat\MinkExtension: + sessions: + default: + symfony2: ~ + suites: + core_suite: + type: symfony_bundle + bundle: Celsius3CoreBundle \ No newline at end of file diff --git a/composer.json b/composer.json index b3eda28d1..d37c7059b 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,13 @@ "friendsofsymfony/oauth-server-bundle": "dev-master" }, "require-dev": { - "sensio/generator-bundle": "~2.3" + "sensio/generator-bundle": "~2.3", + "phpunit/phpunit": "~4.7", + "behat/behat": "~3.0", + "behat/symfony2-extension": "~2.0", + "behat/mink": "~1.6", + "behat/mink-extension": "~2.0", + "behat/mink-browserkit-driver": "~1.2" }, "scripts": { "post-root-package-install": [ diff --git a/features/bootstrap/Celsius3/CoreBundle/Features/Context/FeatureContext.php b/features/bootstrap/Celsius3/CoreBundle/Features/Context/FeatureContext.php new file mode 100644 index 000000000..df5e78316 --- /dev/null +++ b/features/bootstrap/Celsius3/CoreBundle/Features/Context/FeatureContext.php @@ -0,0 +1,25 @@ +