Skip to content

Commit

Permalink
Se agregaron los componentes de testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamarisi committed Jun 22, 2015
1 parent 850fcf8 commit eb66061
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/config/config_test.yml
Expand Up @@ -13,5 +13,6 @@ web_profiler:
swiftmailer:
disable_delivery: true

doctrine_mongodb:
default_database: %mongodb_database_test%
doctrine:
dbal:
dbname: "%database_name_test%"
1 change: 1 addition & 0 deletions app/config/parameters.yml.dist
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions behat.yml
@@ -0,0 +1,11 @@
default:
extensions:
Behat\Symfony2Extension: ~
Behat\MinkExtension:
sessions:
default:
symfony2: ~
suites:
core_suite:
type: symfony_bundle
bundle: Celsius3CoreBundle
8 changes: 7 additions & 1 deletion composer.json
Expand Up @@ -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": [
Expand Down
@@ -0,0 +1,25 @@
<?php

namespace Celsius3\CoreBundle\Features\Context;

use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;

/**
* Defines application features from the specific context.
*/
class FeatureContext implements Context, SnippetAcceptingContext
{
/**
* Initializes context.
*
* Every scenario gets its own context instance.
* You can also pass arbitrary arguments to the
* context constructor through behat.yml.
*/
public function __construct()
{
}
}

0 comments on commit eb66061

Please sign in to comment.